dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not insert page titles into querycache.qc_value
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialChangeEmail.php
diff --git
a/includes/specials/SpecialChangeEmail.php
b/includes/specials/SpecialChangeEmail.php
index
c95aa1b
..
7331cd7
100644
(file)
--- a/
includes/specials/SpecialChangeEmail.php
+++ b/
includes/specials/SpecialChangeEmail.php
@@
-23,6
+23,7
@@
use MediaWiki\Auth\AuthManager;
use MediaWiki\Logger\LoggerFactory;
use MediaWiki\Auth\AuthManager;
use MediaWiki\Logger\LoggerFactory;
+use MediaWiki\MediaWikiServices;
/**
* Let users change their email address.
/**
* Let users change their email address.
@@
-74,7
+75,10
@@
class SpecialChangeEmail extends FormSpecialPage {
// This could also let someone check the current email address, so
// require both permissions.
// This could also let someone check the current email address, so
// require both permissions.
- if ( !$this->getUser()->isAllowed( 'viewmyprivateinfo' ) ) {
+ if ( !MediaWikiServices::getInstance()
+ ->getPermissionManager()
+ ->userHasRight( $this->getUser(), 'viewmyprivateinfo' )
+ ) {
throw new PermissionsError( 'viewmyprivateinfo' );
}
throw new PermissionsError( 'viewmyprivateinfo' );
}