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

Roland Mas lolando at libremir.placard.fr.eu.org
Fri May 21 09:49:40 CEST 2010


Author: lolando
Date: 2010-05-21 09:49:40 +0200 (Fri, 21 May 2010)
New Revision: 9810

Modified:
   trunk/gforge/common/include/RBAC.php
Log:
Determine permission bits for forge_admin and approve_news

Modified: trunk/gforge/common/include/RBAC.php
===================================================================
--- trunk/gforge/common/include/RBAC.php	2010-05-21 07:49:30 UTC (rev 9809)
+++ trunk/gforge/common/include/RBAC.php	2010-05-21 07:49:40 UTC (rev 9810)
@@ -109,6 +109,12 @@
 				switch ($oldsection) {
 				case 'projectadmin':
 					$newsection = 'project_admin' ;
+					if ($this->data_array['group_id'] == 1 && $t[0] == 'A') {
+						$this->perms_array['forge_admin'][-1] = true ;
+					}
+					if ($this->data_array['group_id'] == forge_get_config ('news_group') && $t[0] == 'A') {
+						$this->perms_array['approve_news'][-1] = true ;
+					}
 					break ;
 				case 'trackeradmin':
 					$newsection = 'tracker_admin' ;




More information about the Fusionforge-commits mailing list