~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • 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:
610
610
/*
611
611
  Is this session viewable by the current user?
612
612
*/
613
 
bool Session::isViewable() const
 
613
bool Session::isViewable(identifier::User::const_reference user_arg) const
614
614
{
615
 
  return plugin::Authorization::isAuthorized(current_session->user(),
616
 
                                             this,
617
 
                                             false);
 
615
  return plugin::Authorization::isAuthorized(user_arg, this, false);
618
616
}
619
617
 
620
618