Make CmdHelp check the view lock to exclude commands from listing

This commit is contained in:
Griatch 2020-10-13 22:50:43 +02:00
parent 8274a4c05b
commit 8f232f23c3

View file

@ -175,7 +175,7 @@ class CmdHelp(Command):
False: the command shouldn't appear in the table.
"""
return True
return cmd.access(caller, "view", default=True)
def parse(self):
"""