fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [8469] controller: link in preferences to 'Grant acce


From: Sigurd Nes
Subject: [Fmsystem-commits] [8469] controller: link in preferences to 'Grant access'
Date: Mon, 02 Jan 2012 09:42:41 +0000

Revision: 8469
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8469
Author:   sigurdne
Date:     2012-01-02 09:42:41 +0000 (Mon, 02 Jan 2012)
Log Message:
-----------
controller: link in preferences to 'Grant access'

Modified Paths:
--------------
    trunk/controller/inc/class.menu.inc.php

Modified: trunk/controller/inc/class.menu.inc.php
===================================================================
--- trunk/controller/inc/class.menu.inc.php     2012-01-02 08:21:35 UTC (rev 
8468)
+++ trunk/controller/inc/class.menu.inc.php     2012-01-02 09:42:41 UTC (rev 
8469)
@@ -163,8 +163,37 @@
                                );
                        }
 
-                       $menus['folders'] = 
phpgwapi_menu::get_categories('bergen');
+                       if ( 
isset($GLOBALS['phpgw_info']['user']['apps']['preferences']) )
+                       {
+                               $menus['preferences'] = array
+                               (
+                                       // in case of userprefs - need a hook 
for 'settings'
+/*
+                                       array
+                                       (
+                                               'text'  => 
$GLOBALS['phpgw']->translation->translate('Preferences', array(), true),
+                                               'url'   => 
$GLOBALS['phpgw']->link('/preferences/preferences.php', array('appname' => 
'controller', 'type'=> 'user') )
+                                       ),
+*/
+                                       array
+                                       (
+                                               'text'  => 
$GLOBALS['phpgw']->translation->translate('Grant Access', array(), true),
+                                               'url'   => 
$GLOBALS['phpgw']->link('/index.php',array('menuaction'=> 
'preferences.uiadmin_acl.aclprefs', 'acl_app'=> 'controller') )
+                                       )
+                               );
+/*
+                               $menus['toolbar'][] = array
+                               (
+                                       'text'  => 
$GLOBALS['phpgw']->translation->translate('Preferences', array(), true),
+                                       'url'   => 
$GLOBALS['phpgw']->link('/preferences/preferences.php', array('appname'      => 
'controller')),
+                                       'image' => array('hrm', 'preferences')
+                               );
+*/
+                       }
 
+                       //Nothing...
+                       //$menus['folders'] = 
phpgwapi_menu::get_categories('bergen');
+
                        $GLOBALS['phpgw_info']['flags']['currentapp'] = 
$incoming_app;
 
                        return $menus;




reply via email to

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