3,803
edits
m (1 revision imported) |
MusikAnimal (talk | contribs) m (1 revision imported) |
||
Line 27: | Line 27: | ||
end | end | ||
if title.namespace == 8 then -- MediaWiki namespace | if title.namespace == 8 then -- MediaWiki namespace | ||
return 'sysop' | |||
elseif title.namespace == 2 and title.isSubpage and ( title.contentModel == 'javascript' or title.contentModel == 'css' ) then -- user JS or CSS page | |||
return 'sysop' | |||
elseif title.namespace == 2 and title.isSubpage | |||
end | end | ||
local level = title.protectionLevels[action] and title.protectionLevels[action][1] | local level = title.protectionLevels[action] and title.protectionLevels[action][1] |