fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [6461] API : more on add credentials to admins at int


From: Sigurd Nes
Subject: [Fmsystem-commits] [6461] API : more on add credentials to admins at intall
Date: Sun, 10 Oct 2010 12:24:42 +0000

Revision: 6461
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6461
Author:   sigurdne
Date:     2010-10-10 12:24:42 +0000 (Sun, 10 Oct 2010)
Log Message:
-----------
API : more on add credentials to admins at intall

Modified Paths:
--------------
    trunk/phpgwapi/inc/class.setup_process.inc.php

Modified: trunk/phpgwapi/inc/class.setup_process.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.setup_process.inc.php      2010-10-10 12:00:44 UTC 
(rev 6460)
+++ trunk/phpgwapi/inc/class.setup_process.inc.php      2010-10-10 12:24:42 UTC 
(rev 6461)
@@ -453,7 +453,6 @@
                {
                        $GLOBALS['phpgw']->accounts     = 
createObject('phpgwapi.accounts');
                        $GLOBALS['phpgw']->acl          = 
CreateObject('phpgwapi.acl');
-                       $GLOBALS['phpgw']->acl->enable_inheritance = true;
 
                        $admins = array();
                        $accounts       = 
$GLOBALS['phpgw']->acl->get_ids_for_location('run', phpgwapi_acl::READ, 
'admin');
@@ -471,10 +470,17 @@
                        {
                                if(!$GLOBALS['phpgw']->acl->check('run', 
phpgwapi_acl::READ, $appname))
                                {
+                                       $locations = 
$GLOBALS['phpgw']->locations->get_locations(false, $appname);
+
                                        $aclobj =& $GLOBALS['phpgw']->acl;
                                        $aclobj->set_account_id($admin, true);
                                        // application permissions
                                        $aclobj->add($appname, 'run', 
phpgwapi_acl::READ);
+                                       foreach ($locations as $location => 
$info)
+                                       {
+                                               $aclobj->add($appname, 
$location, 31);
+                                       }
+
                                        $aclobj->save_repository();
                                        $members = array_merge($members, 
$GLOBALS['phpgw']->accounts->get_members($admin));
                                }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]