system
(system)
January 18, 2012, 5:59am
1
cbezuidenhout wrote on Wednesday, January 18, 2012 :
Hi all,
busy trying to implement an administrator only feature,
all of the following return false when logged in as admin. Am I totally off cue here ?
$isAdmin = acl_check(‘Administrator’);
$isAdmin = acl_check(‘Admin’);
$isAdmin = acl_check(‘Administrators’);
$isAdmin = acl_check(‘administrator’);
$isAdmin = acl_check(‘admin’);
$isAdmin = acl_check(‘administrators’);
thanks
- Craig
Tajemo Enterprises
system
(system)
January 18, 2012, 6:56am
2
yehster wrote on Wednesday, January 18, 2012 :
You need to check a section and a value
$isAdmin =acl_check('admin','super');
This checks if the user is a “Superuser”
These are other options in the admin section (ignore the ‘10’, that’s an artifact of pasting from mysqlquery wizard).
‘10’, ‘admin’, ‘batchcom’
‘10’, ‘admin’, ‘calendar’
‘10’, ‘admin’, ‘database’
‘10’, ‘admin’, ‘drugs’
‘10’, ‘admin’, ‘forms’
‘10’, ‘admin’, ‘language’
‘10’, ‘admin’, ‘practice’
‘10’, ‘admin’, ‘super’
‘10’, ‘admin’, ‘superbill’
‘10’, ‘admin’, ‘users’
system
(system)
January 18, 2012, 3:11pm
3
aethelwulffe wrote on Wednesday, January 18, 2012 :
and the include require_once($GLOBALS."/library/acl.inc");