r79705 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79704‎ | r79705 | r79706 >
Date:02:38, 6 January 2011
Author:kaldari
Status:deferred
Tags:
Comment:
moving user-rights set-up per bug 26377
Modified paths:
  • /trunk/extensions/CentralNotice/CentralNotice.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/CentralNotice.php
@@ -74,9 +74,6 @@
7575 $wgExtensionMessagesFiles['CentralNotice'] = $dir . 'CentralNotice.i18n.php';
7676 $wgExtensionAliasesFiles['CentralNotice'] = $dir . 'CentralNotice.alias.php';
7777
78 -$wgAvailableRights[] = 'centralnotice-admin';
79 -$wgGroupPermissions['sysop']['centralnotice-admin'] = true; // Only sysops can make change
80 -
8178 function efCentralNoticeSetup() {
8279 global $wgHooks, $wgNoticeInfrastructure, $wgAutoloadClasses, $wgSpecialPages;
8380 global $wgCentralNoticeLoader;
@@ -105,6 +102,10 @@
106103 $wgAutoloadClasses['TemplatePager'] = $dir . 'TemplatePager.php';
107104
108105 if ( $wgNoticeInfrastructure ) {
 106+ // Register user rights
 107+ $wgAvailableRights[] = 'centralnotice-admin';
 108+ $wgGroupPermissions['sysop']['centralnotice-admin'] = true; // Only sysops can make change
 109+
109110 $wgSpecialPages['CentralNotice'] = 'CentralNotice';
110111 $wgSpecialPageGroups['CentralNotice'] = 'wiki'; // Wiki data and tools"
111112

Follow-up revisions

RevisionCommit summaryAuthorDate
r79780reverting permissions changekaldari00:43, 7 January 2011

Status & tagging log