Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Effective protection level: Difference between revisions

From WikiOasis Meta
m 1 revision imported from metawikimedia:Module:Effective_protection_level: Required for local usage
m>Tulsi
Fulfilling edit requests per talk page by Awesome Aasim
Line 47: Line 47:
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
return 'sysop'
return 'sysop'
elseif level == 'templateeditor' then
return 'templateeditor'
elseif action == 'move' then
elseif action == 'move' then
local blacklistentry = mw.ext.TitleBlacklist.test('edit', pagename) -- Testing action edit is correct, since this is for the source page. The target page name gets tested with action move.
local blacklistentry = mw.ext.TitleBlacklist.test('edit', pagename) -- Testing action edit is correct, since this is for the source page. The target page name gets tested with action move.
if blacklistentry and not blacklistentry.params.autoconfirmed then
if blacklistentry and not blacklistentry.params.autoconfirmed then
return 'templateeditor'
return 'sysop'
elseif title.namespace == 6 then
elseif title.namespace == 6 then
return 'filemover'
return 'filemover'
Line 64: Line 62:
if blacklistentry then
if blacklistentry then
if not blacklistentry.params.autoconfirmed then
if not blacklistentry.params.autoconfirmed then
return 'templateeditor'
return 'sysop'
elseif level == 'extendedconfirmed' then
elseif level == 'extendedconfirmed' then
return 'extendedconfirmed'
return 'extendedconfirmed'
Cookies help us deliver our services. By using our services, you agree to our use of cookies.