Chris Winters > OpenInteract-1.99_06 > OpenInteract2::Auth::AdminCheck

Download:
OpenInteract-1.99_06.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 1.13   Source  

NAME ^

OpenInteract2::Auth::AdminCheck - See whether user is admin

SYNOPSIS ^

 # Set admin users/groups in server config
 
 [default_objects]
 superuser        = 1
 supergroup       = 1
 site_admin_group = 3

DESCRIPTION ^

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 ^

Copyright (c) 2002-2005 Chris Winters. All rights reserved.

AUTHORS ^

Chris Winters <chris@cwinters.com>