[evolvis-commits] r13370: Merged from 4.8: Fixed error when modifying the permissions of a role in a project that doesn 't use all the tools
mirabilos at evolvis.org
mirabilos at evolvis.org
Mon Feb 28 02:33:34 CET 2011
Author: mirabilos
Date: 2011-02-28 02:33:33 +0100 (Mon, 28 Feb 2011)
New Revision: 13370
Modified:
trunk/gforge_base/evolvisforge-5.1/gforge/common/include/Role.class.php
Log:
Merged from 4.8: Fixed error when modifying the permissions of a role in a project that doesn't use all the tools
Modified: trunk/gforge_base/evolvisforge-5.1/gforge/common/include/Role.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/common/include/Role.class.php 2011-02-28 01:33:31 UTC (rev 13369)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/common/include/Role.class.php 2011-02-28 01:33:33 UTC (rev 13370)
@@ -481,6 +481,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 evolvis-commits
mailing list