fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [7438] property: check acl


From: Sigurd Nes
Subject: [Fmsystem-commits] [7438] property: check acl
Date: Tue, 28 Jun 2011 09:04:07 +0000

Revision: 7438
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7438
Author:   sigurdne
Date:     2011-06-28 09:04:07 +0000 (Tue, 28 Jun 2011)
Log Message:
-----------
property: check acl

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

Modified: trunk/property/inc/class.uiimport.inc.php
===================================================================
--- trunk/property/inc/class.uiimport.inc.php   2011-06-28 09:03:49 UTC (rev 
7437)
+++ trunk/property/inc/class.uiimport.inc.php   2011-06-28 09:04:07 UTC (rev 
7438)
@@ -30,7 +30,15 @@
                
                public function __construct()
                {
-                       set_time_limit(10000); //Set the time limit for this 
request oto 3000 seconds
+                       if ( !$GLOBALS['phpgw']->acl->check('run', 
phpgwapi_acl::READ, 'admin')
+                               && !$GLOBALS['phpgw']->acl->check('admin', 
phpgwapi_acl::ADD, 'property'))
+                       {
+                               $GLOBALS['phpgw_info']['flags']['xslt_app'] = 
true;
+                               execMethod('property.bocommon.no_access');
+                       }
+
+                       set_time_limit(10000);
+//                     $GLOBALS['phpgw']->common->phpgw_header(true);
                        $this->account          = 
(int)$GLOBALS['phpgw_info']['user']['account_id'];
                        $this->db           = & $GLOBALS['phpgw']->db;
                }




reply via email to

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