Modul:Effective protection level: Unterschied zwischen den Versionen
Modul:Effective protection level (Quelltext anzeigen)
Version vom 16. Januar 2014, 21:44 Uhr
, vor 10 Jahrendetect cascading protection
(don't bother checking our own frame) |
(detect cascading protection) |
||
Zeile 20: | Zeile 20: | ||
return 'sysop' | return 'sysop' | ||
else | else | ||
local level = frame:callParserFunction('PROTECTIONLEVEL', action, pagename) | |||
if level == 'sysop' then | |||
return 'sysop' | |||
elseif frame:callParserFunction('CASCADINGSOURCES', pagename) ~= '' then -- used by a cascading-protected page | |||
return 'sysop' | |||
end | |||
return level | |||
end | end | ||
end | end |