return $GLOBALS[__FUNCTION__][$adminId][$action][$what];
}
- // But default result is failed
- $GLOBALS[__FUNCTION__][$adminId][$action][$what] = FALSE;
-
// Get admin's defult access right
$default = getAdminDefaultAcl($adminId);
SQL_FREERESULT($result);
}
+ // But default result is failed
+ $GLOBALS[__FUNCTION__][$adminId][$action][$what] = FALSE;
+
// Check ACL and (maybe) allow
//* DEBUG: */ debugOutput('default='.$default.',acl_mode='.$aclMode.',parent='.intval($parent));
if ((($default == 'allow') && ($aclMode != 'deny')) || (($default == 'deny') && ($aclMode == 'allow')) || ($parent === TRUE) || (($default == 'NO-ACL') && ($aclMode == 'failed') && ($parent === FALSE))) {