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 "RevisionStore::newRevisionFromBatch should use Title::newFromRow"
[lhc/web/wiklou.git]
/
includes
/
page
/
ImagePage.php
diff --git
a/includes/page/ImagePage.php
b/includes/page/ImagePage.php
index
653e443
..
bb15532
100644
(file)
--- a/
includes/page/ImagePage.php
+++ b/
includes/page/ImagePage.php
@@
-603,7
+603,10
@@
EOT
);
}
);
}
- if ( $wgEnableUploads && $user->isAllowed( 'upload' ) ) {
+ if ( $wgEnableUploads && MediaWikiServices::getInstance()
+ ->getPermissionManager()
+ ->userHasRight( $user, 'upload' )
+ ) {
// Only show an upload link if the user can upload
$uploadTitle = SpecialPage::getTitleFor( 'Upload' );
$nofile = [
// Only show an upload link if the user can upload
$uploadTitle = SpecialPage::getTitleFor( 'Upload' );
$nofile = [