|mediawiki/extensions/WikibaseMediaInfo||master||+47 -20||Don't show controls when users can't add/edit statements|
Checked on commons wmf.11.
The controls for the statements on pages with Full protection and Template protection cannot be edited by users who do not have edit rights.
However, the pages with Cascading protection can be edited by users in Users, Autoconfirmed groups.
The message "This page is currently protected, and can be edited only by administrators." incorrectly says that only Administrators can edit.
Tested for a user that is only in Users, Autoconfirmed groups
@matthiasmullie - can you confirm that the above case for Cascading protection is correct? And probably the message should be changed?
The error message is actually correct & "ordinary" users can't submit their edits indeed.
Ideally, it also wouldn't show controls in that case, but at least it actually does prevent the edit (and again shows the same error message)
Sadly, this is intentional - that ahead-of-time cascading protection check was removed here because it was expensive and incomplete.