Module:Effective protection level: Difference between revisions

no edit summary
m (1 revision imported)
No edit summary
Line 39: Line 39:
return 'templateeditor'
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 = false
if blacklistentry and not blacklistentry.params.autoconfirmed then
if blacklistentry and not blacklistentry.params.autoconfirmed then
return 'templateeditor'
return 'templateeditor'
Line 50: Line 50:
end
end
end
end
local blacklistentry = mw.ext.TitleBlacklist.test(action, pagename)
local blacklistentry = false
if blacklistentry then
if blacklistentry then
if not blacklistentry.params.autoconfirmed then
if not blacklistentry.params.autoconfirmed then