Hoo man has uploaded a new change for review. Change subject: Fix ProtectionForm for users with both protect and editprotected ......................................................................
Fix ProtectionForm for users with both protect and editprotected The protection form showed a weird interface for users that have both the protect and the editprotected rights when wgRestrictionLevels that the user doesn't explicitly have are available. Those users were able to protect the page (as they can both edit it and have the protect right) but they can't see the restriction levels that they don't have explictly. I've changed it so that users with both protect and editprotected can use all restriction levels from now on. This doesn't change much as those users can already edit the pages with restriction levels they don't have and change the protection level to any restriction level which is available to them just not those they don't have explicitly. The purpose of these checks is to prevent the users from selecting protection levels which they can't alter after (or edit the page). This change leaves that protection intact but can simplify the user rights on a wiki with many restriction levels available a lot! Change-Id: I128cce87d89899150029bbce25e56ba13b17cf70 --- M includes/ProtectionForm.php 1 file changed, 15 insertions(+), 6 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/97/42797/1 -- To view, visit https://gerrit.wikimedia.org/r/42797 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I128cce87d89899150029bbce25e56ba13b17cf70 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Hoo man <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
