Module:Effective protection level: Difference between revisions

detect cascading protection
(don't bother checking our own frame)
(detect cascading protection)
Line 20:
return 'sysop'
else
returnlocal 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
Anonymous user