Anonymous user
Module:Effective protection level: Difference between revisions
detect cascading protection
Enwikipedia>Jackmcbarn (don't bother checking our own frame) |
Enwikipedia>Jackmcbarn (detect cascading protection) |
||
Line 20:
return 'sysop'
else
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
|