Page MenuHomePhabricator

Add "protect" level for nonexistent pages
Open, Needs TriagePublic

Description

Currently, existing pages have the levels "edit", "move", "delete", and "protect". The latter two are rarely seen due to sysop being the highest level on most wikis. However, on wikis where this is not the case, it's possible to set the Delete and Protect level.

For nonexistant pages, there is "Create" option. However, there needs to be a "Create" option and a "Protect" option, to prevent simply lowering the protection level and entirely bypassing it.

Event Timeline

You should use TitleGetRestrictionTypes hook to add more restriction types that you want.

1234qwer1234qwer4 renamed this task from Add "protect" level for nonexistant pages to Add "protect" level for nonexistent pages.Sep 17 2020, 1:54 PM

Finally this task is getting some attention

Finally this task is getting some attention

I'd not advise you to wait for this to be added in core, if you truly need it. Because that could take forever to happen. Please explain why you cannot use the TitleGetRestrictionTypes hook that I mentioned above, to achieve the same thing for your install.

Finally this task is getting some attention

I'd not advise you to wait for this to be added in core, if you truly need it. Because that could take forever to happen. Please explain why you cannot use the TitleGetRestrictionTypes hook that I mentioned above, to achieve the same thing for your install.

Mainly because I don't see a reason to run around using extensions for something that actually affects ALL wikis. However it might be worth looking into for a short term solution