r100598 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100597‎ | r100598 | r100599 >
Date:10:11, 24 October 2011
Author:cervidae
Status:deferred (Comments)
Tags:
Comment:
Adding permission changeauthor to wgAvailableRights for special page basing user permissions management systems
Modified paths:
  • /trunk/extensions/ChangeAuthor/ChangeAuthor.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ChangeAuthor/ChangeAuthor.php
@@ -43,6 +43,9 @@
4444 $wgSpecialPages['ChangeAuthor'] = 'ChangeAuthor';
4545 $wgSpecialPageGroups['ChangeAuthor'] = 'pagetools';
4646
 47+// Required permission to use Special:ChangeAuthor
 48+$wgAvailableRights[] = 'changeauthor';
 49+
4750 // Add new log type
4851 $wgLogTypes[] = 'changeauth';
4952 $wgLogNames['changeauth'] = 'changeauthor-logpagename';

Comments

#Comment by Raymond (talk | contribs)   10:16, 24 October 2011

Please add a decription message for the new user right. Like I have done for r100582. Thanks.

#Comment by SVG (talk | contribs)   10:22, 24 October 2011

A description message does already exist in i18n file. Only $wgAvailableRights was missing.

#Comment by Raymond (talk | contribs)   10:23, 24 October 2011

Sorry, I missed that.

Status & tagging log