Module:Protection banner: Difference between revisions
Content added Content deleted
Enwikipedia>Mr. Stradivarius (start changing the protection category function after a restructure of the config) |
Enwikipedia>Mr. Stradivarius (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 '*' |