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 "ContribsPage: Re-remove the getContribs() method"
[lhc/web/wiklou.git]
/
includes
/
changes
/
ChangesList.php
diff --git
a/includes/changes/ChangesList.php
b/includes/changes/ChangesList.php
index
7807877
..
0382d73
100644
(file)
--- a/
includes/changes/ChangesList.php
+++ b/
includes/changes/ChangesList.php
@@
-716,7
+716,9
@@
class ChangesList extends ContextSource {
/** Check for rollback permissions, disallow special pages, and only
* show a link on the top-most revision
*/
/** Check for rollback permissions, disallow special pages, and only
* show a link on the top-most revision
*/
- if ( $title->quickUserCan( 'rollback', $this->getUser() ) ) {
+ if ( MediaWikiServices::getInstance()->getPermissionManager()
+ ->quickUserCan( 'rollback', $this->getUser(), $title )
+ ) {
$rev = new Revision( [
'title' => $title,
'id' => $rc->mAttribs['rc_this_oldid'],
$rev = new Revision( [
'title' => $title,
'id' => $rc->mAttribs['rc_this_oldid'],