~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/authorization.cc

  • Committer: Lee Bieber
  • Date: 2011-03-29 22:31:41 UTC
  • mfrom: (2257.1.3 build)
  • Revision ID: kalebral@gmail.com-20110329223141-yxc22h3l2he58sk0
Merge Andrew - 743842: Build failure using GCC 4.6
Merge Stewart - 738022: CachedDirectory silently fails to add entries if stat() fails
Merge Olaf - Common fwd: add copyright, add more declaration

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
  
203
203
  // To make sure we hold the user structure we need to have a shred_ptr so
204
204
  // that we increase the count on the object.
205
 
  drizzled::identifier::User::const_shared_ptr session_ctx= session.user();
 
205
  drizzled::identifier::user::ptr session_ctx= session.user();
206
206
 
207
207
 
208
208
  /* Use find_if instead of foreach so that we can collect return codes */
230
230
}
231
231
 
232
232
void plugin::Authorization::pruneSchemaNames(const drizzled::identifier::User& user_ctx,
233
 
                                             identifier::Schema::vector &set_of_schemas)
 
233
                                             identifier::schema::vector &set_of_schemas)
234
234
{
235
235
  /* If we never loaded any authorization plugins, just return true */
236
236
  if (authorization_plugins.empty())