[Fusionforge-commits] r14641 - in trunk: . src/plugins/moinmoin/cronjobs src/plugins/moinmoin/etc

Roland Mas lolando at fusionforge.org
Fri Oct 14 18:06:01 CEST 2011


Author: lolando
Date: 2011-10-14 18:06:01 +0200 (Fri, 14 Oct 2011)
New Revision: 14641

Modified:
   trunk/
   trunk/src/plugins/moinmoin/cronjobs/create-wikis.php
   trunk/src/plugins/moinmoin/etc/farmconfig.py
Log:
Better way to map forge admin to MoinMoin ACL

Modified: trunk/src/plugins/moinmoin/cronjobs/create-wikis.php
===================================================================
--- trunk/src/plugins/moinmoin/cronjobs/create-wikis.php	2011-10-14 16:05:53 UTC (rev 14640)
+++ trunk/src/plugins/moinmoin/cronjobs/create-wikis.php	2011-10-14 16:06:01 UTC (rev 14641)
@@ -64,7 +64,6 @@
     sitename = u'$project'
     interwikiname = u'$project'
     page_front_page = u'FrontPage'
-    acl_rights_default = u'All:'
 
     data_dir = '$project_dir/data'
     data_underlay_dir = '$project_dir/underlay'

Modified: trunk/src/plugins/moinmoin/etc/farmconfig.py
===================================================================
--- trunk/src/plugins/moinmoin/etc/farmconfig.py	2011-10-14 16:05:53 UTC (rev 14640)
+++ trunk/src/plugins/moinmoin/etc/farmconfig.py	2011-10-14 16:06:01 UTC (rev 14641)
@@ -16,6 +16,10 @@
     auth = [ffsa]
     superuser = ffsa.get_super_users()
 
+    acl_rights_default = u'All:'
+    for i in superuser:
+        acl_rights_default = i+':read,write,delete,revert,admin ' + acl_rights_default
+
 ff_link = fusionforge.FusionForgeLink()
 ff_host = ff_link.get_config('web_host')
 wikis = []




More information about the Fusionforge-commits mailing list