give admin access to all apps, to save us some support requests

This commit is contained in:
Ralf Becker 2004-03-21 16:11:51 +00:00
parent 9b29b3a712
commit 1d6a4ff344

View File

@ -100,7 +100,15 @@
/* Group perms for the default group */ /* Group perms for the default group */
$GLOBALS['phpgw_setup']->add_acl(array('addressbook','calendar','infolog','email','preferences'),'run',$defaultgroupid); $GLOBALS['phpgw_setup']->add_acl(array('addressbook','calendar','infolog','email','preferences'),'run',$defaultgroupid);
$GLOBALS['phpgw_setup']->add_acl('admin','run',$admingroupid);
// give admin access to all apps, to save us some support requests
$all_apps = array();
$GLOBALS['phpgw_setup']->db->query('SELECT app_name FROM phpgw_applications WHERE app_enabled<3');
while ($GLOBALS['phpgw_setup']->db->next_record())
{
$all_apps[] = $GLOBALS['phpgw_setup']->db->f('app_name');
}
$GLOBALS['phpgw_setup']->add_acl($all_apps,'run',$admingroupid);
function insert_default_prefs($accountid) function insert_default_prefs($accountid)
{ {