r40990 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40989‎ | r40990 | r40991 >
Date:16:25, 18 September 2008
Author:sanbeg
Status:old
Tags:
Comment:
remove odd, undocumented "passwordresetself" right; previously, needed both rights to use extension, either right alone just gave misleading error
Modified paths:
  • /trunk/extensions/PasswordReset/PasswordReset_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PasswordReset/PasswordReset_body.php
@@ -23,7 +23,7 @@
2424 $this->setHeaders();
2525
2626
27 - if ( !$wgUser->isAllowed( 'passwordreset' ) || !$wgUser->isAllowed( 'passwordresetself' ) ) {
 27+ if ( !$wgUser->isAllowed( 'passwordreset' ) ) {
2828 $wgOut->permissionRequired( 'passwordreset' );
2929 return;
3030 }