EBernhardson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/191835

Change subject: User only requires history access to see the username on a 
revision
......................................................................

User only requires history access to see the username on a revision

Change-Id: I77269c7f14fb9072648b242d563f1cc038efd3be
---
M includes/Templating.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/35/191835/1

diff --git a/includes/Templating.php b/includes/Templating.php
index cc77a5b..ff5beda 100644
--- a/includes/Templating.php
+++ b/includes/Templating.php
@@ -86,7 +86,7 @@
         * @throws FlowException
         */
        public function getUserLinks( AbstractRevision $revision ) {
-               if ( !$revision->isModerated() && 
!$this->permissions->isAllowed( $revision, 'view' ) ) {
+               if ( !$revision->isModerated() && 
!$this->permissions->isAllowed( $revision, 'history' ) ) {
                        throw new FlowException( 'Insufficient permissions to 
see userlinks for rev_id = ' . $revision->getRevisionId()->getAlphadecimal() );
                }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/191835
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I77269c7f14fb9072648b242d563f1cc038efd3be
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to