[Fusionforge-commits] r9883 - trunk/gforge/common/include

Roland Mas lolando at libremir.placard.fr.eu.org
Fri May 21 15:56:51 CEST 2010


Author: lolando
Date: 2010-05-21 15:56:51 +0200 (Fri, 21 May 2010)
New Revision: 9883

Modified:
   trunk/gforge/common/include/Role.class.php
Log:
Allow editing permissions for Anonymous (role_id=1) when USE_PFO_RBAC

Modified: trunk/gforge/common/include/Role.class.php
===================================================================
--- trunk/gforge/common/include/Role.class.php	2010-05-21 13:48:50 UTC (rev 9882)
+++ trunk/gforge/common/include/Role.class.php	2010-05-21 13:56:51 UTC (rev 9883)
@@ -551,7 +551,7 @@
 		//
 		//	Cannot update role_id=1
 		//
-		if ($this->getID() == 1) {
+		if ($this->getID() == 1 && !USE_PFO_RBAC) {
 			$this->setError('Cannot Update Default Role');
 			return false;
 		}




More information about the Fusionforge-commits mailing list