phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] preferences/inc class.uiadmin_acl.inc.php


From: Sigurd Nes
Subject: [Phpgroupware-cvs] preferences/inc class.uiadmin_acl.inc.php
Date: Tue, 21 Mar 2006 12:57:23 +0000

CVSROOT:        /sources/phpgroupware
Module name:    preferences
Branch:         
Changes by:     Sigurd Nes <address@hidden>     06/03/21 12:57:23

Modified files:
        inc            : class.uiadmin_acl.inc.php 

Log message:
        Inserting missing top-location for apps

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgroupware/preferences/inc/class.uiadmin_acl.inc.php.diff?tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: preferences/inc/class.uiadmin_acl.inc.php
diff -u preferences/inc/class.uiadmin_acl.inc.php:1.1 
preferences/inc/class.uiadmin_acl.inc.php:1.2
--- preferences/inc/class.uiadmin_acl.inc.php:1.1       Tue Mar 14 10:30:54 2006
+++ preferences/inc/class.uiadmin_acl.inc.php   Tue Mar 21 12:57:23 2006
@@ -8,7 +8,7 @@
        * @internal Development of this application was funded by 
http://www.bergen.kommune.no/bbb_/ekstern/
        * @package hrm
        * @subpackage admin
-       * @version $Id: class.uiadmin_acl.inc.php,v 1.1 2006/03/14 10:30:54 
sigurdne Exp $
+       * @version $Id: class.uiadmin_acl.inc.php,v 1.2 2006/03/21 12:57:23 
sigurdne Exp $
        */
 
        /**
@@ -57,6 +57,9 @@
                        $this->location                         = 
$this->bo->location;
                        $this->granting_group                   = 
$this->bo->granting_group;
                        $this->allrows                          = 
$this->bo->allrows;
+
+                       // Add top location if used for first time
+                       
$GLOBALS['phpgw']->acl->verify_location(array($this->acl_app => 
array('top_grant' =>True)));
                }
 
                function save_sessiondata()
@@ -255,7 +258,7 @@
                        $function_msg                                   = 
lang('set grants');
                        $owner_name = 
$GLOBALS['phpgw']->accounts->id2name($GLOBALS['phpgw']->accounts->account_id);  
          // get owner name for title
 
-                       $GLOBALS['phpgw_info']['flags']['app_header'] = 
lang('admin') . ' - ' . $appname . ': ' . $function_msg . ': ' . $owner_name;
+                       $GLOBALS['phpgw_info']['flags']['app_header'] = 
lang('admin') . ' - ' . $this->acl_app . ': ' . $function_msg . ': ' . 
$owner_name;
                        
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array('list_permission' => $data));
                        $this->save_sessiondata();
                }
@@ -496,7 +499,7 @@
                        $appname                                                
= lang('permission');
                        $function_msg                                   = 
lang('set permission');
 
-                       $GLOBALS['phpgw_info']['flags']['app_header'] = 
lang('admin') . ' - ' . $appname . ': ' . $function_msg;
+                       $GLOBALS['phpgw_info']['flags']['app_header'] = 
lang('admin') . ' - ' . $this->acl_app . ': ' . $function_msg;
                        
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array('list_permission' => $data));
                        $this->save_sessiondata();
                }




reply via email to

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