Modul:Effective protection level: Unterschied zwischen den Versionen
Modul:Effective protection level (Quelltext anzeigen)
Version vom 21. Dezember 2014, 20:39 Uhr
, vor 9 Jahrenhandle SALTed pages correctly
(fix semi-create-protected pages) |
(handle SALTed pages correctly) |
||
Zeile 31: | Zeile 31: | ||
end | end | ||
local level = title.protectionLevels[action] and title.protectionLevels[action][1] | local level = title.protectionLevels[action] and title.protectionLevels[action][1] | ||
if level == 'sysop' then | if level == 'sysop' or level == 'editprotected' then | ||
return 'sysop' | return 'sysop' | ||
elseif title.cascadingProtection.restrictions[action] and title.cascadingProtection.restrictions[action][1] then -- used by a cascading-protected page | elseif title.cascadingProtection.restrictions[action] and title.cascadingProtection.restrictions[action][1] then -- used by a cascading-protected page |