Module:Protection banner: Difference between revisions

m
check the right action variable
(treat semi-move-protected pages as unprotected)
m (check the right action variable)
Line 110: Line 110:
level = 'templateeditor'
level = 'templateeditor'
end
end
if action == 'move' and level == 'autoconfirmed' then
if self._action == 'move' and level == 'autoconfirmed' then
-- Users need to be autoconfirmed to move pages anyway, so treat
-- Users need to be autoconfirmed to move pages anyway, so treat
-- semi-move-protected pages as unprotected.
-- semi-move-protected pages as unprotected.
Anonymous user