[Fusionforge-commits] r10403 - trunk/src/plugins/wiki/www/themes/fusionforge

Marc-Etienne VARGENAU vargenau at libremir.placard.fr.eu.org
Thu Sep 2 22:05:28 CEST 2010


Author: vargenau
Date: 2010-09-02 22:05:27 +0200 (Thu, 02 Sep 2010)
New Revision: 10403

Modified:
   trunk/src/plugins/wiki/www/themes/fusionforge/themeinfo.php
Log:
Restore session_require_perm and session_require_global_perm

Modified: trunk/src/plugins/wiki/www/themes/fusionforge/themeinfo.php
===================================================================
--- trunk/src/plugins/wiki/www/themes/fusionforge/themeinfo.php	2010-09-02 19:45:24 UTC (rev 10402)
+++ trunk/src/plugins/wiki/www/themes/fusionforge/themeinfo.php	2010-09-02 20:05:27 UTC (rev 10403)
@@ -23,13 +23,13 @@
         //group is private
         if (!$project->isPublic()) {
             //if it's a private group, you must be a member of that group
-            session_require(array('group'=>$group_id));
+            session_require_perm ('project_read', $group_id);
         }
 
         //for dead projects must be member of admin project
         if (!$project->isActive()) {
             //only SF group can view non-active, non-holding groups
-            session_require(array('group'=>'1'));
+            session_require_global_perm ('forge_admin');
         }
 
         $HTML->header(array('title'=> $group_public_name.': '.htmlspecialchars($pagename),




More information about the Fusionforge-commits mailing list