[Fusionforge-commits] r7618 - branches/Branch_4_8/gforge/common/include

Roland Mas lolando at libremir.placard.fr.eu.org
Wed May 6 21:58:18 CEST 2009


Author: lolando
Date: 2009-05-06 21:58:17 +0200 (Wed, 06 May 2009)
New Revision: 7618

Modified:
   branches/Branch_4_8/gforge/common/include/Role.class.php
Log:
Fixed error when modifying the permissions of a role in a project that doesn't use all the tools

Modified: branches/Branch_4_8/gforge/common/include/Role.class.php
===================================================================
--- branches/Branch_4_8/gforge/common/include/Role.class.php	2009-05-06 15:11:26 UTC (rev 7617)
+++ branches/Branch_4_8/gforge/common/include/Role.class.php	2009-05-06 19:58:17 UTC (rev 7618)
@@ -425,6 +425,12 @@
 			}
 		}
 //		if ($update_usergroup) {
+			$keys = array ('forumadmin', 'pmadmin', 'trackeradmin', 'docman', 'scm', 'frs', 'projectadmin') ;
+			foreach ($keys as $k) {
+				if (!array_key_exists ($k, $data)) {
+					$data[$k] = array(0);
+				}
+			}
 			$res = db_query_params ('UPDATE user_group
                                SET admin_flags=$1,
    				   forum_flags=$2,




More information about the Fusionforge-commits mailing list