~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/simple_user_policy/policy.h

  • Committer: Monty Taylor
  • Date: 2010-11-25 01:53:19 UTC
  • mto: (1953.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1955.
  • Revision ID: mordred@inaugust.com-20101125015319-ia85msn25uemopgc
Re-enabled -Wformat and then cleaned up the carnage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
  { }
38
38
 
39
39
  virtual bool restrictSchema(const drizzled::SecurityContext &user_ctx,
40
 
                              drizzled::SchemaIdentifier::const_reference schema);
 
40
                              drizzled::SchemaIdentifier &db);
41
41
 
42
42
  virtual bool restrictProcess(const drizzled::SecurityContext &user_ctx,
43
43
                               const drizzled::SecurityContext &session_ctx);
44
44
};
45
45
 
46
46
inline bool Policy::restrictSchema(const drizzled::SecurityContext &user_ctx,
47
 
                                   drizzled::SchemaIdentifier::const_reference schema)
 
47
                                   drizzled::SchemaIdentifier &schema)
48
48
{
49
49
  if ((user_ctx.getUser() == "root")
50
50
      || schema.compare("data_dictionary")