[20995] Improvement: allow local admin on application 4565:4680
Sigurd Nes <[email protected]> Sat, 30 Jan 2010 16:24:18 +0000
| Newsgroups | gmane.comp.web.phpgroupware.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 20995
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=20995
Author: sigurdne
Date: 2010-01-30 16:24:18 +0000 (Sat, 30 Jan 2010)
Log Message:
-----------
Improvement: allow local admin on application 4565:4680
Modified Paths:
--------------
people/sigurdne/modules/hrm/trunk/inc/class.menu.inc.php
Modified: people/sigurdne/modules/hrm/trunk/inc/class.menu.inc.php
===================================================================
--- people/sigurdne/modules/hrm/trunk/inc/class.menu.inc.php 2010-01-30 16:22:18 UTC (rev 20994)
+++ people/sigurdne/modules/hrm/trunk/inc/class.menu.inc.php 2010-01-30 16:24:18 UTC (rev 20995)
@@ -61,7 +61,9 @@
$menus['toolbar'] = array();
- if ( isset($GLOBALS['phpgw_info']['user']['apps']['admin']) )
+// if ( isset($GLOBALS['phpgw_info']['user']['apps']['admin']) )
+ if ( $GLOBALS['phpgw']->acl->check('run', phpgwapi_acl::READ, 'admin')
+ || $GLOBALS['phpgw']->acl->check('admin', phpgwapi_acl::ADD, 'property'))
{
$menus['admin'] = array
(