Fixed System pages not being createable even with proper admin rights. This is hackish, it probably needs to have something implemented at the ACL level.
authorDan
Mon, 11 Aug 2008 21:34:37 -0400
changeset 682 9523cc7d767c
parent 681 424ea7aac0ca
child 683 fcc494e02baf
Fixed System pages not being createable even with proper admin rights. This is hackish, it probably needs to have something implemented at the ACL level.
plugins/SpecialPageFuncs.php
--- a/plugins/SpecialPageFuncs.php	Mon Aug 11 21:33:46 2008 -0400
+++ b/plugins/SpecialPageFuncs.php	Mon Aug 11 21:34:37 2008 -0400
@@ -87,6 +87,10 @@
   global $lang;
   
   $whitelist_ns = array('Article', 'User', 'Help', 'Template', 'Category', 'Project');
+  if ( $session->user_level >= USER_LEVEL_ADMIN )
+  {
+    $whitelist_ns[] = 'System';
+  }
   $code = $plugins->setHook('page_create_ns_whitelist');
   foreach ( $code as $cmd )
   {