Editing a Lexeme must only be possible by accounts with the "edit" right.
Acceptance criteria
- A user without the "edit" right can not edit any part of a Lexeme
Scenarios
Scenario: Not authorized
GIVEN I am on the Lexeme page
WHEN I do not have the "edit" right
THEN I see no edit buttons
Scenario: Authorization revoked after page load
GIVEN I am on the Lexeme page
AND I do not have the "edit" right
AND I see edit buttons
WHEN I edit something
AND I submit changes
THEN Show the error message from the API (the general error handling in Wikibase) at the save button
Links:
- Built in Mediawiki rights: https://www.mediawiki.org/wiki/Manual:User_rights#List_of_permissions
- Wikibase repo/includes/Store/EntityPermissionChecker.php