X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ffilters.php;h=c90cdea9be9e0a8415ab65e87fb65a53da0e35fa;hp=4380a52ba341912cd0b7f7ff4bbb2ae0bf349350;hb=97cc48768dde69e5a98aab29b54ae7326422f9cb;hpb=f853baf87e141ab54fd28d6a1e4d8e301a1b9fb4 diff --git a/inc/filters.php b/inc/filters.php index 4380a52ba3..c90cdea9be 100644 --- a/inc/filters.php +++ b/inc/filters.php @@ -659,5 +659,27 @@ function FILTER_LOAD_RUNTIME_INCLUDES () { //* DEBUG: */ die(); } +// Filter for checking admin ACL +function FILTER_CHECK_ADMIN_ACL () { + // Extension not installed so it's always allowed to access everywhere! + $ret = true; + + // Ok, Cookie-Update done + if ((isExtensionInstalledAndNewer('admins', '0.3.0')) && (isExtensionActive('admins'))) { + // Check if action GET variable was set + $action = getAction(); + if (isWhatSet()) { + // Get action value by what-value + $action = getModeAction('admin', getWhat()); + } // END - if + + // Check for access control line of current menu entry + $ret = adminsCheckAdminAcl($action, getWhat()); + } // END - if + + // Set it here + $GLOBALS['acl_allow'] = $ret; +} + // [EOF] ?>