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
Merge "Recognize exif values for Apple iOS photo modes"
[lhc/web/wiklou.git]
/
includes
/
exception
/
PermissionsError.php
diff --git
a/includes/exception/PermissionsError.php
b/includes/exception/PermissionsError.php
index
cc69a76
..
87a3dc2
100644
(file)
--- a/
includes/exception/PermissionsError.php
+++ b/
includes/exception/PermissionsError.php
@@
-18,6
+18,8
@@
* @file
*/
* @file
*/
+use MediaWiki\MediaWikiServices;
+
/**
* Show an error when a user tries to do something they do not have the necessary
* permissions for.
/**
* Show an error when a user tries to do something they do not have the necessary
* permissions for.
@@
-46,7
+48,9
@@
class PermissionsError extends ErrorPageError {
if ( !count( $errors ) ) {
$groups = [];
if ( !count( $errors ) ) {
$groups = [];
- foreach ( User::getGroupsWithPermission( $this->permission ) as $group ) {
+ foreach ( MediaWikiServices::getInstance()
+ ->getPermissionManager()
+ ->getGroupsWithPermission( $this->permission ) as $group ) {
$groups[] = UserGroupMembership::getLink( $group, RequestContext::getMain(), 'wiki' );
}
$groups[] = UserGroupMembership::getLink( $group, RequestContext::getMain(), 'wiki' );
}