14,091
edits
m (1 revision) |
(check) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 27: | Line 27: | ||
if title.namespace == 8 then -- MediaWiki namespace | if title.namespace == 8 then -- MediaWiki namespace | ||
return 'sysop' | return 'sysop' | ||
elseif title.namespace == 2 and ( | elseif title.namespace == 2 and title.isSubpage and ( title.contentModel == 'javascript' or title.contentModel == 'css' ) then -- user JS or CSS page | ||
return 'sysop' | return 'sysop' | ||
end | end | ||
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 |