fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [6935] property: more on documents for entities


From: Sigurd Nes
Subject: [Fmsystem-commits] [6935] property: more on documents for entities
Date: Sun, 06 Feb 2011 18:21:32 +0000

Revision: 6935
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6935
Author:   sigurdne
Date:     2011-02-06 18:21:31 +0000 (Sun, 06 Feb 2011)
Log Message:
-----------
property: more on documents for entities

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

Modified: trunk/property/inc/class.sodocument.inc.php
===================================================================
--- trunk/property/inc/class.sodocument.inc.php 2011-02-06 13:30:26 UTC (rev 
6934)
+++ trunk/property/inc/class.sodocument.inc.php 2011-02-06 18:21:31 UTC (rev 
6935)
@@ -668,6 +668,7 @@
                                }
                        }
 
+                       $acl_add = $GLOBALS['phpgw']->acl->check('.document', 
PHPGW_ACL_ADD, 'property');
                        $documents = array();
                        if($location_code)
                        {
@@ -763,7 +764,7 @@
 
 //--add node
 
-                               if(count($doc_types) == 1) // node
+                               if($acl_add && count($doc_types) == 1) // node
                                {
                                        $level = $level+1;
                                        if($level == $y)




reply via email to

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