~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/authorization.cc

  • Committer: Brian Aker
  • Date: 2010-12-16 18:52:06 UTC
  • mfrom: (1999.2.2 compare)
  • Revision ID: brian@tangent.org-20101216185206-nqx8ys9jj863xqie
Merge in identifier work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
  public std::unary_function<plugin::Authorization *, bool>
61
61
{
62
62
  const SecurityContext &user_ctx;
63
 
  SchemaIdentifier &schema;
 
63
  SchemaIdentifier::const_reference schema;
 
64
 
64
65
public:
65
66
  RestrictDbFunctor(const SecurityContext &user_ctx_arg,
66
 
                    SchemaIdentifier &schema_arg) :
 
67
                    SchemaIdentifier::const_reference schema_arg) :
67
68
    std::unary_function<plugin::Authorization *, bool>(),
68
69
    user_ctx(user_ctx_arg),
69
70
    schema(schema_arg)
132
133
} /* namespace */
133
134
 
134
135
bool plugin::Authorization::isAuthorized(const SecurityContext &user_ctx,
135
 
                                         SchemaIdentifier &schema_identifier,
 
136
                                         SchemaIdentifier::const_reference schema_identifier,
136
137
                                         bool send_error)
137
138
{
138
139
  /* If we never loaded any authorization plugins, just return true */