phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] [19038] Add the addremaster location if it doesn't ex


From: Caeies
Subject: [Phpgroupware-cvs] [19038] Add the addremaster location if it doesn't exist
Date: Wed, 21 Jan 2009 18:37:58 +0000

Revision: 19038
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=19038
Author:   Caeies
Date:     2009-01-21 18:37:58 +0000 (Wed, 21 Jan 2009)

Log Message:
-----------
Add the addremaster location if it doesn't exist

Modified Paths:
--------------
    core/trunk/admin/inc/class.uiaclmanager.inc.php

Modified: core/trunk/admin/inc/class.uiaclmanager.inc.php
===================================================================
--- core/trunk/admin/inc/class.uiaclmanager.inc.php     2009-01-21 18:36:54 UTC 
(rev 19037)
+++ core/trunk/admin/inc/class.uiaclmanager.inc.php     2009-01-21 18:37:58 UTC 
(rev 19038)
@@ -189,6 +189,18 @@
                        $GLOBALS['phpgw_info']['flags']['app_header'] = 
lang('admin') . ': ' . lang('list addressmasters');
                        $GLOBALS['phpgw']->xslttpl->add_file('addressmaster');
 
+                       //XXX Caeies Jan09 : I put this here, since we don't 
realy need this acl before setting up the addessmaster
+                       //XXX Anyway, I still think this is broken design. This 
should be done at setup for this application.
+                       try {
+                               
if($GLOBALS['phpgw']->locations->get_id('addressbook', 'addressmaster') == 
False)
+                               {
+                                       
$GLOBALS['phpgw']->locations->add('addressmaster', 'Address Master', 
'addressbook');
+                               }
+                       }
+                       catch(Exception $e)
+                       {
+                               
$GLOBALS['phpgw']->locations->add('addressmaster', 'Address Master', 
'addressbook');
+                       }
                        $admins = $this->boacl->list_addressmasters();
                        
                        //_debug_array($admins);






reply via email to

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