Modul:Protection banner: Unterschied zwischen den Versionen
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) |
||
Zeile 109: | Zeile 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 '*' |