~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/authorization.cc

  • Committer: Brian Aker
  • Date: 2010-12-07 09:12:12 UTC
  • mto: This revision was merged to the branch mainline in revision 1985.
  • Revision ID: brian@tangent.org-20101207091212-1m0w20tck6z7632m
This is a fix for bug lp:686197

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