diff --git a/preferences/preferences.php b/preferences/preferences.php index 585e99218e..25e91d66cf 100755 --- a/preferences/preferences.php +++ b/preferences/preferences.php @@ -179,6 +179,20 @@ define('HAS_ADMIN_RIGHTS',1); } + // Makes the ifs a little nicer, plus ... this will change once the ACL manager is in place + // and is able to create less powerfull admins. This will handle the ACL checks for that (jengo) + function is_admin() + { + if (HAS_ADMIN_RIGHTS == 1) + { + return True; + } + else + { + return False; + } + } + if (is_admin()) { // This is where we will keep track of our postion. @@ -238,20 +252,6 @@ $dp->read_repository(); } - // Makes the ifs a little nicer, plus ... this will change once the ACL manager is in place - // and is able to create less powerfull admins. This will handle the ACL checks for that (jengo) - function is_admin() - { - if (HAS_ADMIN_RIGHTS == 1) - { - return True; - } - else - { - return False; - } - } - if ($GLOBALS['HTTP_POST_VARS']['submit']) { // Don't use a switch here, we need to check some permissions durring the ifs @@ -326,4 +326,4 @@ $GLOBALS['phpgw']->common->phpgw_footer(); -?> \ No newline at end of file +?>