[Fusionforge-commits] r11283 - trunk/src/common/docman/include

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Mon Nov 1 18:05:46 CET 2010


Author: nerville
Date: 2010-11-01 18:05:45 +0100 (Mon, 01 Nov 2010)
New Revision: 11283

Modified:
   trunk/src/common/docman/include/webdav.php
Log:
check if member of this group

Modified: trunk/src/common/docman/include/webdav.php
===================================================================
--- trunk/src/common/docman/include/webdav.php	2010-11-01 12:11:28 UTC (rev 11282)
+++ trunk/src/common/docman/include/webdav.php	2010-11-01 17:05:45 UTC (rev 11283)
@@ -49,8 +49,15 @@
 				return true;
 			}
 			return false;
+		} else {
+			$u = &user_get_object_by_name($user);
+			foreach ($u->getGroups() as $key => $memberOfThisGroup) {
+				if ($memberOfThisGroup->getID() == $group_id) {
+					return true;
+				}
+			}
 		}
-		return true;
+		return false;
 	}
 
     function HEAD(&$options) {




More information about the Fusionforge-commits mailing list