r92381 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92380‎ | r92381 | r92382 >
Date:20:50, 16 July 2011
Author:jeroendedauw
Status:deferred (Comments)
Tags:
Comment:
rev r92379, this right is not set by default
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/specials/SMWAdmin/SMW_SpecialSMWAdmin.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/specials/SMWAdmin/SMW_SpecialSMWAdmin.php
@@ -22,11 +22,12 @@
2323 * @ingroup SpecialPage
2424 */
2525 class SMWAdmin extends SpecialPage {
 26+
2627 /**
2728 * Constructor
2829 */
2930 public function __construct() {
30 - parent::__construct( 'SMWAdmin', 'siteadmin' );
 31+ parent::__construct( 'SMWAdmin', 'delete' );
3132 smwfLoadExtensionMessages( 'SemanticMediaWiki' );
3233 }
3334

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r92379required siteadmin right instead of delete right for special smwadminjeroendedauw20:26, 16 July 2011

Comments

#Comment by Nikerabbit (talk | contribs)   08:18, 17 July 2011

I don't like using unrelated rights, especially since this cannot be overridden.

#Comment by Jeroen De Dauw (talk | contribs)   14:14, 17 July 2011

Yeah, me neither, which I why I originally changed this. Not sure what the best approach to "fixing" this is though. Can introduce a new right such as smwadmin, but I think it'd be nicer to have a general siteadmin right, which there is, but is not assigned by default.