[Fusionforge-commits] r11669 - in branches/Branch_5_1/src: common/forum common/include common/pm common/tracker www/forum/admin www/pm/admin www/tracker/admin

Roland Mas lolando at libremir.placard.fr.eu.org
Mon Nov 29 17:51:24 CET 2010


Author: lolando
Date: 2010-11-29 17:51:23 +0100 (Mon, 29 Nov 2010)
New Revision: 11669

Modified:
   branches/Branch_5_1/src/common/forum/Forum.class.php
   branches/Branch_5_1/src/common/include/Group.class.php
   branches/Branch_5_1/src/common/pm/ProjectGroup.class.php
   branches/Branch_5_1/src/common/tracker/ArtifactType.class.php
   branches/Branch_5_1/src/www/forum/admin/index.php
   branches/Branch_5_1/src/www/pm/admin/index.php
   branches/Branch_5_1/src/www/tracker/admin/ind.php
Log:
Postpone role normalization to accelerate project approvals

Modified: branches/Branch_5_1/src/common/forum/Forum.class.php
===================================================================
--- branches/Branch_5_1/src/common/forum/Forum.class.php	2010-11-29 16:12:21 UTC (rev 11668)
+++ branches/Branch_5_1/src/common/forum/Forum.class.php	2010-11-29 16:51:23 UTC (rev 11669)
@@ -227,8 +227,6 @@
 		}
 		db_commit();
 
-		$this->Group->normalizeAllRoles () ;
-
 		return true;
 	}
 

Modified: branches/Branch_5_1/src/common/include/Group.class.php
===================================================================
--- branches/Branch_5_1/src/common/include/Group.class.php	2010-11-29 16:12:21 UTC (rev 11668)
+++ branches/Branch_5_1/src/common/include/Group.class.php	2010-11-29 16:51:23 UTC (rev 11669)
@@ -2442,6 +2442,8 @@
 			}
 		}
 
+		$this->normalizeAllRoles () ;
+
 		// Switch back to user preference
 		session_set_internal ($saved_session->getID()) ;
 		setup_gettext_from_context();

Modified: branches/Branch_5_1/src/common/pm/ProjectGroup.class.php
===================================================================
--- branches/Branch_5_1/src/common/pm/ProjectGroup.class.php	2010-11-29 16:12:21 UTC (rev 11668)
+++ branches/Branch_5_1/src/common/pm/ProjectGroup.class.php	2010-11-29 16:51:23 UTC (rev 11669)
@@ -179,8 +179,6 @@
 
 		db_commit();
 
-		$this->Group->normalizeAllRoles () ;
-
 		return true;
 	}
 

Modified: branches/Branch_5_1/src/common/tracker/ArtifactType.class.php
===================================================================
--- branches/Branch_5_1/src/common/tracker/ArtifactType.class.php	2010-11-29 16:12:21 UTC (rev 11668)
+++ branches/Branch_5_1/src/common/tracker/ArtifactType.class.php	2010-11-29 16:51:23 UTC (rev 11669)
@@ -262,7 +262,6 @@
 				return false;
 			} else {
 				db_commit();
-				$this->Group->normalizeAllRoles () ;
 				return $id;
 		}
 	}

Modified: branches/Branch_5_1/src/www/forum/admin/index.php
===================================================================
--- branches/Branch_5_1/src/www/forum/admin/index.php	2010-11-29 16:12:21 UTC (rev 11668)
+++ branches/Branch_5_1/src/www/forum/admin/index.php	2010-11-29 16:51:23 UTC (rev 11669)
@@ -76,6 +76,7 @@
 		if (check_email_available($g, $g->getUnixName() . '-' . getStringFromRequest('forum_name'), $error_msg)) {
 			$fa = new ForumAdmin($group_id);
 			$feedback .= $fa->ExecuteAction("add_forum");
+			$g->normalizeAllRoles () ;
 		}
 	} else if (getStringFromRequest('change_status')) {
 		$fa = new ForumAdmin($group_id);

Modified: branches/Branch_5_1/src/www/pm/admin/index.php
===================================================================
--- branches/Branch_5_1/src/www/pm/admin/index.php	2010-11-29 16:12:21 UTC (rev 11668)
+++ branches/Branch_5_1/src/www/pm/admin/index.php	2010-11-29 16:51:23 UTC (rev 11669)
@@ -79,6 +79,7 @@
 		} else {
 			$feedback .= _('Subproject Inserted');
 			$warning_msg .= _("Please configure also the roles (by default, it's 'No Access')");
+			$g->normalizeAllRoles () ;
 		}
 
 	} else if ($add_cat) {

Modified: branches/Branch_5_1/src/www/tracker/admin/ind.php
===================================================================
--- branches/Branch_5_1/src/www/tracker/admin/ind.php	2010-11-29 16:12:21 UTC (rev 11668)
+++ branches/Branch_5_1/src/www/tracker/admin/ind.php	2010-11-29 16:51:23 UTC (rev 11669)
@@ -50,7 +50,7 @@
             $feedback .= '<br/>';
 			$feedback .= _('Please configure also the roles (by default, it\'s \'No Access\')');
 		}
-
+		$group->normalizeAllRoles () ;
 	}
 }
 




More information about the Fusionforge-commits mailing list