Page MenuHomePhabricator

User warnings when editing objects should be more specific
Open, MediumPublic

Description

(1) Presently, Users group user can edit user-contributed objects of non-restricted types (T349082). When a user switches to the Edit mode, the warning says: "You are editing the function definition page. Only users with special permissions can change the definition of the function."
Since editing non-restricted objects types is available to all users, the warning is not applicable anymore?

Screen Shot 2023-11-17 at 3.47.04 PM.png (932×2 px, 246 KB)

(2) When a user in Users group attempts to edit Core types, the above warning is not displayed:
Screen Shot 2023-11-17 at 3.46.06 PM.png (740×2 px, 175 KB)

However, when users (Users group) after making some edits, click on the "Publish" button, the following warning informs them that they are not allowed to save their edits.

Users in Users group should be timely informed that they are not allowed to edit certain objects types.

Screen Shot 2023-11-17 at 3.30.35 PM.png (1×2 px, 315 KB)

Event Timeline

@Jdforrester-WMF when an editor enters "edit source" mode, would it be possible to check what are their user rights, and programmatically display a message in-page? very poorly written message eg. "⚠️ While you can edit this page, based on your current user group you will not be able to publish your changes."