Page MenuHomePhabricator

"View Source" link appears as "Edit" for autoconfirmed users (who cannot edit newsletters)
Closed, ResolvedPublic

Description

This is a minor visual problem; clicking the link properly produces a permission error, but it says 'Edit'

Event Timeline

Will I ever stop finding new bugs?

Will I ever stop finding new bugs?

In general that's very unlikely. Welcome to the reality of software development. :P

Qgil subscribed.

Good catch. As a general principle, users should be presented labels / links according to their permissions, in order to avoid false expectations.

If a user cannot edit a newsletter, the label should be either "View source"+ link.

GCI is over - we should do some cleanup.

Now all of Newsletter groups are only to sysop. Can't recreate this.

Pppery removed Filip as the assignee of this task.

This bug still exists, but was made impossible to test by the change of newsletter-create to sysop. The link still displays edit for a user with the newsletter-create right but not the newsletter-manage right, who cannot edit newsletters.

Change 332366 had a related patch set uploaded (by Filip):
Restricted Newsletter editing to "newsletter-manage" group.

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

Pppery: Hmm, thats rare case.

Change 332366 merged by jenkins-bot:
Restricted Newsletter editing to "newsletter-manage" group.

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

@Pppery @01tonythomas Admins can disable rights using newsletter-create: false now, do I think, we can close this :)