Home | Wiki | OI 1.x Docs | OI 2.x Docs |
OpenInteract2::Auth::AdminCheck - See whether user is admin
# Set admin users/groups in server config [default_objects] superuser = 1 supergroup = 1 site_admin_group = 3
is_admin( $auth )
Returns true if 'user' from $auth
(an
OpenInteract2::Auth object) is superuser or if
an admin group is available in the 'groups' property of
$auth
. Normally called only by
OpenInteract2::Auth
Returns: 'yes' if admin, 'no' if not. Also set in $auth
.
Copyright (c) 2002-2003 Chris Winters. All rights reserved.
Chris Winters <chris@cwinters.com>
Generated from the OpenInteract 1.99_03 source.