Difference between revisions of "Module:Effective protection level"
Jump to navigation
Jump to search
Module:Effective protection level (view source)
Revision as of 21:34, 21 August 2014
, 21:34, 21 August 2014avoid calling the parser unnecessarily
>Mr. Stradivarius m (Changed protection level of Module:Effective protection level: High-risk Lua module ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))) |
>Jackmcbarn (avoid calling the parser unnecessarily) |
||
Line 33: | Line 33: | ||
if level == 'sysop' then | if level == 'sysop' then | ||
return 'sysop' | return 'sysop' | ||
elseif | 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 |