Page MenuHomePhabricator

CollaborationHubContent: Don't show join button on members block for non-logged-in users if they do not have edit or account creation rights
Closed, ResolvedPublic

Description

Check if the users can even create an account at all, or edit without creating an account, before we try to nudge them into doing so.

Hide the join button if not.

Event Timeline

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

Tangentially related, the buttons just straight up don't work if the user is logged out. Should the buttons be hidden under this circumstance as well?

(That's the main reason why I sorted this under first release.)

I will submit a patch to hide the join button for non-logged in users, and defer this particular thing for another time.

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.