From: Roland Häder Date: Thu, 27 Dec 2012 04:23:04 +0000 (+0000) Subject: Moved to this position, so both are closer to each other X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9ec9f07186909831cf2355436ab23cb178622caf;p=mailer.git Moved to this position, so both are closer to each other --- diff --git a/inc/libs/admins_functions.php b/inc/libs/admins_functions.php index 46ac5a0f89..e50ce362a3 100644 --- a/inc/libs/admins_functions.php +++ b/inc/libs/admins_functions.php @@ -53,9 +53,6 @@ function isAdminsAllowedByAcl ($action, $what) { 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); @@ -123,6 +120,9 @@ function isAdminsAllowedByAcl ($action, $what) { 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))) {