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 @@
24
24
$this->setHeaders();
25
25
26
26
27
- if ( !$wgUser->isAllowed( 'passwordreset' ) || !$wgUser->isAllowed( 'passwordresetself' ) ) {
27
+ if ( !$wgUser->isAllowed( 'passwordreset' ) ) {
28
28
$wgOut->permissionRequired( 'passwordreset' );
29
29
return;
30
30
}