Skip to content

HIDE_RESTRICTED_COMMANDS = True breaks !apropos command due to undefined attribute/method #1711

Open
@zaughon

Description

Describe the bug
Setting HIDE_RESTRICTED_COMMANDS = True in config.py breaks the apropos command.

To Reproduce

  • errbot --init
  • errbot to start the bot, then run !apropos help - Command works.
  • Stop the bot and add HIDE_RESTRICTED_COMMANDS = True to config.py
  • errbot and run !apropos help again. This time the command fails:
[@CHANGE_ME ➡ @errbot] >>> !apropos help
Computer says nooo. See logs for details:
'TextBackend' object has no attribute 'check_command_access'

or self._bot.check_command_access(msg, name)[0]

Grepping and searching through the repo, this is the only mention of self._bot.check_command_access, so it does in fact seem undefined
Same error will happen when using the Slackv3 backend.

Expected behavior
Command works.

Screenshots

Environment (please complete the following information):

  • Errbot version: 6.2.0 (same issue happens with Master-branch using Slackv3 backend)
  • OS version: Arch
  • Python version: 3.13.1
  • Using a virtual environment: yes
  • Using Docker: Fails regardless of Docker.

Additional context

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions