mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 09:28:29 +01:00
php3 fix again with same function as before
This commit is contained in:
parent
86496398e7
commit
5a5d1c0a09
@ -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();
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user