~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/authorization.h

  • Committer: Olaf van der Spek
  • Date: 2011-03-23 23:52:54 UTC
  • mto: This revision was merged to the branch mainline in revision 2251.
  • Revision ID: olafvdspek@gmail.com-20110323235254-g3q0c1feajno7edr
 Remove const_reference and reference from identifier::Table

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
   * @returns true if the user cannot access the table
69
69
   */
70
70
  virtual bool restrictTable(drizzled::identifier::User::const_reference user_ctx,
71
 
                             drizzled::identifier::Table::const_reference table);
 
71
                             const drizzled::identifier::Table& table);
72
72
 
73
73
  /**
74
74
   * Should we restrict the current user's access to see this process?
89
89
 
90
90
  /** Server API method for checking table authorization */
91
91
  static bool isAuthorized(drizzled::identifier::User::const_reference user_ctx,
92
 
                           drizzled::identifier::Table::const_reference table_identifier,
 
92
                           const drizzled::identifier::Table& table_identifier,
93
93
                           bool send_error= true);
94
94
 
95
95
  /** Server API method for checking process authorization */
113
113
};
114
114
 
115
115
inline bool Authorization::restrictTable(drizzled::identifier::User::const_reference user_ctx,
116
 
                                         drizzled::identifier::Table::const_reference table)
 
116
                                         const drizzled::identifier::Table& table)
117
117
{
118
118
  return restrictSchema(user_ctx, table);
119
119
}