Legoktm has uploaded a new change for review.
https://gerrit.wikimedia.org/r/200109
Change subject: Use User::equals()
......................................................................
Use User::equals()
Change-Id: I7fe3c1c9a7e798d6f063d4c10a1f05444682aacc
---
M includes/specials/SpecialGather.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Gather
refs/changes/09/200109/1
diff --git a/includes/specials/SpecialGather.php
b/includes/specials/SpecialGather.php
index ce216c6..f635e41 100644
--- a/includes/specials/SpecialGather.php
+++ b/includes/specials/SpecialGather.php
@@ -162,7 +162,7 @@
* @return boolean
*/
private function isOwner( User $user ) {
- return $this->getUser()->getName() == $user->getName();
+ return $this->getUser()->equals( $user );
}
// FIXME: Re-evaluate when UI supports editing image of collection.
--
To view, visit https://gerrit.wikimedia.org/r/200109
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7fe3c1c9a7e798d6f063d4c10a1f05444682aacc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Gather
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits