Module:Effective protection level: Difference between revisions

m
1 revision
m (1 revision)
 
m (1 revision)
(One intermediate revision by the same user not shown)
Line 33: Line 33:
if level == 'sysop' then
if level == 'sysop' then
return 'sysop'
return 'sysop'
elseif mw.getCurrentFrame():callParserFunction('CASCADINGSOURCES', pagename) ~= '' 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
return 'sysop'
return 'sysop'
elseif level == 'templateeditor' then
elseif level == 'templateeditor' then
14,061

edits