~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/authorization.h

  • Committer: Brian Aker
  • Date: 2010-12-22 16:40:49 UTC
  • mto: (2022.2.1 clean)
  • mto: This revision was merged to the branch mainline in revision 2025.
  • Revision ID: brian@tangent.org-20101222164049-vjbi97jztrlr01l1
Encapsulate client call. Also remove the need to call current_session when
looking for privs for processlist.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
                           const Session *session,
97
97
                           bool send_error= true);
98
98
 
 
99
  /** Server API method for checking process authorization */
 
100
  static bool isAuthorized(drizzled::identifier::User::const_reference user_ctx,
 
101
                           const Session *session,
 
102
                           bool send_error= true);
 
103
 
99
104
  /**
100
105
   * Server API helper method for applying authorization tests
101
106
   * to a set of schema names (for use in the context of getSchemaNames