~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/simple_user_policy/policy.h

  • Committer: Brian Aker
  • Date: 2010-12-25 00:28:49 UTC
  • mto: This revision was merged to the branch mainline in revision 2031.
  • Revision ID: brian@tangent.org-20101225002849-g73mg6ihulajis0o
First pass in refactoring of the name of my_decimal.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
  { }
38
38
 
39
39
  virtual bool restrictSchema(const drizzled::identifier::User &user_ctx,
40
 
                              drizzled::identifier::Schema::const_reference schema);
 
40
                              drizzled::SchemaIdentifier::const_reference schema);
41
41
 
42
42
  virtual bool restrictProcess(const drizzled::identifier::User &user_ctx,
43
43
                               const drizzled::identifier::User &session_ctx);
44
44
};
45
45
 
46
46
inline bool Policy::restrictSchema(const drizzled::identifier::User &user_ctx,
47
 
                                   drizzled::identifier::Schema::const_reference schema)
 
47
                                   drizzled::SchemaIdentifier::const_reference schema)
48
48
{
49
49
  if ((user_ctx.username() == "root")
50
50
      || schema.compare("data_dictionary")
51
51
      || schema.compare("information_schema"))
52
 
  {
53
52
    return false;
54
 
  }
55
 
 
56
53
  return not schema.compare(user_ctx.username());
57
54
}
58
55