r59743 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r59742‎ | r59743 | r59744 >
Date:20:35, 4 December 2009
Author:werdna
Status:deferred
Tags:
Comment:
Add rewrite of sysop->protect for protection rights
Modified paths:
  • /trunk/extensions/LiquidThreads/classes/Thread.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/classes/Thread.php
@@ -1408,6 +1408,7 @@
14091409 $restrictions = array_merge( $threadRestrictions, $talkpageRestrictions );
14101410
14111411 foreach( $restrictions as $right => $source ) {
 1412+ if ( $right == 'sysop' ) $right = 'protect';
14121413 if ( !$user->isAllowed( $right ) ) {
14131414 return $source;
14141415 }

Status & tagging log