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 "Add .pipeline/ with dev image variant"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialLog.php
diff --git
a/includes/specials/SpecialLog.php
b/includes/specials/SpecialLog.php
index
ac8baa1
..
7c85814
100644
(file)
--- a/
includes/specials/SpecialLog.php
+++ b/
includes/specials/SpecialLog.php
@@
-94,7
+94,9
@@
class SpecialLog extends SpecialPage {
if ( !LogPage::isLogType( $type ) ) {
$opts->setValue( 'type', '' );
} elseif ( isset( $logRestrictions[$type] )
if ( !LogPage::isLogType( $type ) ) {
$opts->setValue( 'type', '' );
} elseif ( isset( $logRestrictions[$type] )
- && !$this->getUser()->isAllowed( $logRestrictions[$type] )
+ && !MediaWikiServices::getInstance()
+ ->getPermissionManager()
+ ->userHasRight( $this->getUser(), $logRestrictions[$type] )
) {
throw new PermissionsError( $logRestrictions[$type] );
}
) {
throw new PermissionsError( $logRestrictions[$type] );
}