Jhernandez has uploaded a new change for review.
https://gerrit.wikimedia.org/r/197959
Change subject: Fix user passed to views\Collection
......................................................................
Fix user passed to views\Collection
Before we were passing the owner of the collection, but it's meant to receive
the current user (who is viewing the page).
As a result of the mistake the edit buttons were showing to anonymous users.
Bug: T93224
Change-Id: Ief1c6c275821e9c116e87f3f860357226489a3d7
---
M includes/specials/SpecialGather.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Gather
refs/changes/59/197959/1
diff --git a/includes/specials/SpecialGather.php
b/includes/specials/SpecialGather.php
index e1f8b2d..33e23fd 100644
--- a/includes/specials/SpecialGather.php
+++ b/includes/specials/SpecialGather.php
@@ -90,7 +90,7 @@
// FIXME: No permissions to visit this. Showing not
found ATM.
$this->renderError( new views\NotFound() );
} else {
- $this->render( new views\Collection( $user, $collection
) );
+ $this->render( new views\Collection( $this->getUser(),
$collection ) );
}
}
--
To view, visit https://gerrit.wikimedia.org/r/197959
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ief1c6c275821e9c116e87f3f860357226489a3d7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Gather
Gerrit-Branch: master
Gerrit-Owner: Jhernandez <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits