Jump to content

Module:Effective protection level: Difference between revisions

avoid calling the parser unnecessarily
Enwikipedia>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)))
Enwikipedia>Jackmcbarn
(avoid calling the parser unnecessarily)
Line 33:
if level == 'sysop' then
return 'sysop'
elseif mwtitle.getCurrentFrame():callParserFunction('CASCADINGSOURCES',cascadingProtection.restrictions[action] pagename)and ~= ''title.cascadingProtection.restrictions[action][1] then -- used by a cascading-protected page
return 'sysop'
elseif level == 'templateeditor' then
Cookies help us deliver our services. By using our services, you agree to our use of cookies.