Difference between revisions of "Module:Effective protection level"
Module:Effective protection level (view source)
Revision as of 19:44, 16 January 2014
, 19:44, 16 January 2014detect cascading protection
>Jackmcbarn (don't bother checking our own frame) |
>Jackmcbarn (detect cascading protection) |
||
Line 20: | Line 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 |