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-2004 Chris Winters. All rights reserved.

AUTHORS

Chris Winters <chris@cwinters.com>