[Fusionforge-commits] FusionForge branch master updated. 422301e675dbe2b97efd3b342157f1d5c97927ff

Roland Mas lolando at fusionforge.org
Fri May 3 11:36:32 CEST 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  422301e675dbe2b97efd3b342157f1d5c97927ff (commit)
      from  41d834d042f651395c6ad36ded4af03e178f06d1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 422301e675dbe2b97efd3b342157f1d5c97927ff
Author: Roland Mas <lolando at debian.org>
Date:   Fri May 3 11:36:23 2013 +0200

    Remove last uses of the USE_PFO_RBAC constant

diff --git a/src/common/include/RBAC.php b/src/common/include/RBAC.php
index d73273b..967f50a 100644
--- a/src/common/include/RBAC.php
+++ b/src/common/include/RBAC.php
@@ -26,8 +26,6 @@
 
 require 'PFO-RBAC.interface.php';
 
-define ('USE_PFO_RBAC', true);
-
 // Code shared between classes
 
 /**
diff --git a/src/plugins/moinmoin/common/MoinMoinPlugin.class.php b/src/plugins/moinmoin/common/MoinMoinPlugin.class.php
index ecb47bc..2113179 100644
--- a/src/plugins/moinmoin/common/MoinMoinPlugin.class.php
+++ b/src/plugins/moinmoin/common/MoinMoinPlugin.class.php
@@ -140,13 +140,9 @@ class MoinMoinPlugin extends Plugin {
 			$new_sa =& $params['new_sa'] ;
 			$new_pa =& $params['new_pa'] ;
 
-			if (USE_PFO_RBAC) {
-				$projects = $role->getLinkedProjects() ;		
-				foreach ($projects as $p) {
-					$role->normalizePermsForSection ($new_pa, 'plugin_moinmoin_access', $p->getID()) ;
-				}
-			} else {
-				$role->normalizeDataForSection ($new_sa, 'plugin_moinmoin_access') ;
+			$projects = $role->getLinkedProjects() ;		
+			foreach ($projects as $p) {
+				$role->normalizePermsForSection ($new_pa, 'plugin_moinmoin_access', $p->getID()) ;
 			}
 		} elseif ($hookname == "role_translate_strings") {
 			$right = new PluginSpecificRoleSetting ($role,

-----------------------------------------------------------------------

Summary of changes:
 src/common/include/RBAC.php                          |    2 --
 src/plugins/moinmoin/common/MoinMoinPlugin.class.php |   10 +++-------
 2 files changed, 3 insertions(+), 9 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list