[Evolvis-commits] r198: 15: 00⎜ [[Lo-lan-do]] I don ' t think that would help. The permissions for the Users group are quite↵ ⎜ clearly wrong , even though the file is loaded. ↵ 15 : 00⎜ [[Lo-lan-do]] See … /plugins/mediawiki/wiki/auie/index.php/ Special: ListGroupRights↵ 15 : 01⎜ [[ Lo-lan-do]] Um. Maybe it would help, actually. ↵ 15 : 02⎜ [[Lo-lan-do]] Yes, it' s suspicious that there are two Users groups. ↵

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Nov 5 15:09:08 CET 2009


Author: mirabilos
Date: 2009-11-05 14:09:07 +0000 (Thu, 05 Nov 2009)
New Revision: 198

Modified:
   trunk/gforge_base/gforge-4.8.1+evolvis/debian/changelog
   trunk/gforge_base/gforge-4.8.1+evolvis/plugins/mediawiki/cronjobs/create-wikis.sh
   trunk/gforge_base/gforge-4.8.1+evolvis/plugins/mediawiki/www/LocalSettings.php
Log:
15:00⎜[[Lo-lan-do]] I don't think that would help.  The permissions for the Users group are quite
     ⎜    clearly wrong, even though the file is loaded.
15:00⎜[[Lo-lan-do]] See …/plugins/mediawiki/wiki/auie/index.php/Special:ListGroupRights
15:01⎜[[Lo-lan-do]] Um.  Maybe it would help, actually.
15:02⎜[[Lo-lan-do]] Yes, it's suspicious that there are two Users groups.


Modified: trunk/gforge_base/gforge-4.8.1+evolvis/debian/changelog
===================================================================
--- trunk/gforge_base/gforge-4.8.1+evolvis/debian/changelog	2009-11-05 13:53:18 UTC (rev 197)
+++ trunk/gforge_base/gforge-4.8.1+evolvis/debian/changelog	2009-11-05 14:09:07 UTC (rev 198)
@@ -4,8 +4,9 @@
   * mediawiki plugin: allow permissions to be set globally via local.inc,
     comment out per-group overrides by default
   * integrate the evolvis theme automatically
+  * experimentally attempt to fix mediawiki permissions
 
- -- Thorsten Glaser <tg at mirbsd.de>  Thu, 05 Nov 2009 14:52:31 +0100
+ -- Thorsten Glaser <tg at mirbsd.de>  Thu, 05 Nov 2009 15:08:31 +0100
 
 gforge (4.8.1+evolvis-5) unstable; urgency=low
 

Modified: trunk/gforge_base/gforge-4.8.1+evolvis/plugins/mediawiki/cronjobs/create-wikis.sh
===================================================================
--- trunk/gforge_base/gforge-4.8.1+evolvis/plugins/mediawiki/cronjobs/create-wikis.sh	2009-11-05 13:53:18 UTC (rev 197)
+++ trunk/gforge_base/gforge-4.8.1+evolvis/plugins/mediawiki/cronjobs/create-wikis.sh	2009-11-05 14:09:07 UTC (rev 198)
@@ -30,9 +30,9 @@
 //\$wgGroupPermissions['Members']['createtalk']    = true;
 
 // Edit permissions for non-members
-//\$wgGroupPermissions['Users']['edit']          = false;
-//\$wgGroupPermissions['Users']['createpage']    = false;
-//\$wgGroupPermissions['Users']['createtalk']    = false;
+//\$wgGroupPermissions['Siteusers']['edit']        = false;
+//\$wgGroupPermissions['Siteusers']['createpage']  = false;
+//\$wgGroupPermissions['Siteusers']['createtalk']  = false;
 
 // Edit permissions for anonymous users
 //\$wgGroupPermissions['*']['edit']          = false;

Modified: trunk/gforge_base/gforge-4.8.1+evolvis/plugins/mediawiki/www/LocalSettings.php
===================================================================
--- trunk/gforge_base/gforge-4.8.1+evolvis/plugins/mediawiki/www/LocalSettings.php	2009-11-05 13:53:18 UTC (rev 197)
+++ trunk/gforge_base/gforge-4.8.1+evolvis/plugins/mediawiki/www/LocalSettings.php	2009-11-05 14:09:07 UTC (rev 198)
@@ -131,8 +131,8 @@
                         if (!in_array ('Members', $current_groups)) {
                                 $user->addGroup ('Members') ;
                         }
-                        if (!in_array ('Users', $current_groups)) {
-                                $user->addGroup ('Users') ;
+                        if (!in_array ('Siteusers', $current_groups)) {
+                                $user->addGroup ('Siteusers') ;
                         }
                 } elseif ($perm && is_object($perm) && $perm->isMember()) {
                         if (in_array ('Administrators', $current_groups)) {
@@ -141,8 +141,8 @@
                         if (!in_array ('Members', $current_groups)) {
                                 $user->addGroup ('Members') ;
                         }
-                        if (!in_array ('Users', $current_groups)) {
-                                $user->addGroup ('Users') ;
+                        if (!in_array ('Siteusers', $current_groups)) {
+                                $user->addGroup ('Siteusers') ;
                         }
                 } else {
                         if (in_array ('Administrators', $current_groups)) {
@@ -151,8 +151,8 @@
                         if (in_array ('Members', $current_groups)) {
                                 $user->removeGroup ('Members') ;
                         }
-                        if (!in_array ('Users', $current_groups)) {
-                                $user->addGroup ('Users') ;
+                        if (!in_array ('Siteusers', $current_groups)) {
+                                $user->addGroup ('Siteusers') ;
                         }
                 }
 
@@ -178,11 +178,11 @@
 $wgGroupPermissions['Members']['createtalk']    = ifsetor($sys_plugin_mediawiki_access_member_createtalk);
 $wgGroupPermissions['Members']['read']          = ifsetor($sys_plugin_mediawiki_access_member_read, true);
 
-$wgGroupPermissions['Users']['createaccount']   = false;
-$wgGroupPermissions['Users']['edit']            = ifsetor($sys_plugin_mediawiki_access_user_edit);
-$wgGroupPermissions['Users']['createpage']      = ifsetor($sys_plugin_mediawiki_access_user_createpage);
-$wgGroupPermissions['Users']['createtalk']      = ifsetor($sys_plugin_mediawiki_access_user_createtalk);
-$wgGroupPermissions['Users']['read']            = ifsetor($sys_plugin_mediawiki_access_user_read);
+$wgGroupPermissions['Siteusers']['createaccount'] = false;
+$wgGroupPermissions['Siteusers']['edit']          = ifsetor($sys_plugin_mediawiki_access_user_edit);
+$wgGroupPermissions['Siteusers']['createpage']    = ifsetor($sys_plugin_mediawiki_access_user_createpage);
+$wgGroupPermissions['Siteusers']['createtalk']    = ifsetor($sys_plugin_mediawiki_access_user_createtalk);
+$wgGroupPermissions['Siteusers']['read']          = ifsetor($sys_plugin_mediawiki_access_user_read);
 
 $wgGroupPermissions['*']['createaccount']       = false;
 $wgGroupPermissions['*']['edit']                = ifsetor($sys_plugin_mediawiki_access_anon_edit);




More information about the evolvis-commits mailing list