Module:Protection banner: Difference between revisions

treat semi-move-protected pages as unprotected
(start changing the protection category function after a restructure of the config)
(treat semi-move-protected pages as unprotected)
Line 109: Line 109:
-- since templateeditors can do both.
-- since templateeditors can do both.
level = 'templateeditor'
level = 'templateeditor'
end
if action == 'move' and level == 'autoconfirmed' then
-- Users need to be autoconfirmed to move pages anyway, so treat
-- semi-move-protected pages as unprotected.
level = '*'
end
end
self._level = level or '*'
self._level = level or '*'