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 fd46257a2b
commit 5a0f698ad5

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):
"""