fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [15603] API: hide menu items


From: sigurdne
Subject: [Fmsystem-commits] [15603] API: hide menu items
Date: Wed, 7 Sep 2016 11:47:29 +0000 (UTC)

Revision: 15603
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15603
Author:   sigurdne
Date:     2016-09-07 11:47:28 +0000 (Wed, 07 Sep 2016)
Log Message:
-----------
API: hide menu items

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

Modified: trunk/phpgwapi/inc/class.menu.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.menu.inc.php       2016-09-07 11:46:51 UTC (rev 
15602)
+++ trunk/phpgwapi/inc/class.menu.inc.php       2016-09-07 11:47:28 UTC (rev 
15603)
@@ -110,6 +110,10 @@
                        foreach($GLOBALS['phpgw_info']['user']['apps'] as $app 
=> $app_info)
                        //      foreach ( $raw_menus as $app => $raw_menu )
                        {
+                               if($app_info['status'] == 2) // hidden
+                               {
+                                       continue;
+                               }
                                $raw_menu = $raw_menus[$app];
                                // Ignore invalid entries
                                if(!is_array($raw_menu))




reply via email to

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