fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [7394] property: supress tenant


From: Sigurd Nes
Subject: [Fmsystem-commits] [7394] property: supress tenant
Date: Fri, 17 Jun 2011 13:17:28 +0000

Revision: 7394
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7394
Author:   sigurdne
Date:     2011-06-17 13:17:27 +0000 (Fri, 17 Jun 2011)
Log Message:
-----------
property: supress tenant

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

Modified: trunk/property/inc/class.menu.inc.php
===================================================================
--- trunk/property/inc/class.menu.inc.php       2011-06-17 11:42:27 UTC (rev 
7393)
+++ trunk/property/inc/class.menu.inc.php       2011-06-17 13:17:27 UTC (rev 
7394)
@@ -559,12 +559,19 @@
                                        }
                                }
 
-                               $children['tenant'] = array
+                               $config = 
CreateObject('phpgwapi.config','property');
+                               $config->read();
+                               
+                               
if(!isset($config->config_data['suppress_tenant']) || 
!$config->config_data['suppress_tenant'])
+                               {
+                                       $children['tenant'] = array
                                        (
                                                'url'   => 
$GLOBALS['phpgw']->link('/index.php',array('menuaction'=> 
'property.uilocation.index', 'lookup_tenant' => 1, 'type_id' => 
$soadmin_location->read_config_single('tenant_id'))),
                                                'text'  => lang('Tenant'),
                                                'image' => array('property', 
'location_tenant')
                                        );
+                               }
+                               
                                $children['gabnr'] = array
                                        (
                                                'url'   =>      
$GLOBALS['phpgw']->link('/index.php',array('menuaction'=> 
'property.uigab.index')),




reply via email to

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