Page MenuHomePhabricator

CollaborationHubContent: Only show edit button on features if user can edit
Closed, ResolvedPublic

Description

Edit button appears at the top of features. Should only appear if the user can edit them.

Also applies to the create feature button on non-existent features - check if user can create the target title before showing them the option.

Event Timeline

Harej triaged this task as Medium priority.Feb 25 2017, 12:42 AM

Change 503548 had a related patch set uploaded (by Isarra; owner: Jack Phoenix):
[mediawiki/extensions/CollaborationKit@master] Use newfangled permissionmanager stuff and more consistently check for appropriate permissions on collaborationhubs

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

Change 506887 had a related patch set uploaded (by Isarra; owner: Isarra):
[mediawiki/extensions/CollaborationKit@master] Do permissions checks for hub edit buttons and such after main parse

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

Change 503548 merged by jenkins-bot:
[mediawiki/extensions/CollaborationKit@master] Use newfangled permissionmanager stuff and more consistently check for appropriate permissions on collaborationhubs

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

Change 506887 merged by jenkins-bot:
[mediawiki/extensions/CollaborationKit@master] Do permissions checks for hub edit buttons and such after main parse to avoid caching problems

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

Isarra claimed this task.