Page MenuHomePhabricator

Error message about missing permissions at Special:ChangeContentModel is duplicated
Open, Needs TriagePublicBUG REPORT

Description

Steps to reproduce: Have editcontentmodel permissions. Do not have editusercss permissions. Enter another user's css page into Special:ChangeContentModel. Enter the new content model and confirm.

Expected outcome: An error message explains you do not have enough permissions.

Actual outcome: An error message explains you do not have enough permissions. An error message explains you do not have enough permissions (yep, two of them).

contentmodel bug.png (535×938 px, 22 KB)

Event Timeline

1234qwer1234qwer4 changed the subtype of this task from "Task" to "Bug Report".May 17 2021, 9:18 AM

Ok, the two messages are because there's actually two errors - you can't edit the page, and you also can't change the page content model. I don't think it's a regression, but it ofc could be made more clear.

Similar issue is seen when trying to move a page into another user's css or js page.

Ok, the two messages are because there's actually two errors - you can't edit the page, and you also can't change the page content model.

Maybe one of the error messages can just be clarified to say "You do not have permission to change the content model of this CSS page [...]" (rather than "edit")?

Removing inactive assignee (Platform Engineering: Please unassign tasks of previous team members.)