Difference between revisions of "Module:Effective protection level"
Jump to navigation
Jump to search
Module:Effective protection level (view source)
Revision as of 18:39, 21 December 2014
, 18:39, 21 December 2014handle SALTed pages correctly
>Jackmcbarn (fix semi-create-protected pages) |
>Jackmcbarn (handle SALTed pages correctly) |
||
Line 31: | Line 31: | ||
end | end | ||
local level = title.protectionLevels[action] and title.protectionLevels[action][1] | local level = title.protectionLevels[action] and title.protectionLevels[action][1] | ||
if level == 'sysop' then | if level == 'sysop' or level == 'editprotected' then | ||
return 'sysop' | return 'sysop' | ||
elseif title.cascadingProtection.restrictions[action] and title.cascadingProtection.restrictions[action][1] 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 |