Module:Protection banner: Difference between revisions

add catonly param which hides both the banner and padlock if set to yes. all testcases pass. tested in sandbox.
m (1 revision imported)
(add catonly param which hides both the banner and padlock if set to yes. all testcases pass. tested in sandbox.)
Line 843:
-- protection from some other action, then don't bother displaying anything
-- for the other action (except categories).
if not yesno(args.catonly) and (protectionObj.action == 'edit' or
args.demolevel or
not getReachableNodes(
cfg.hierarchy,
protectionObj.level
)[effectiveProtectionLevel('edit', protectionObj.title)])
then
-- Initialise the blurb object