Closed jcfrt closed 1 year ago
Thank you for taking the time to open this issue.
It is by design that Slack Room use Slack ID's rather than names. This is because Slack guarantees Slack ID's to be consistent even if the channel name is renamed. Errbot ACLs for Slack channel IDs are consistent with how Slack user IDs are used with ACLs. You can find the Slack ID for a channel by clicking the channel name in the slack UI, it will display the Channel ID at the bottom of the properties page.
FYI: Text mode is a different backend and doesn't not guarantee the same behaviour as the slackv3 backend.
That makes sense. Thanks for the reply and sorry for the noise. :)
I'll look at improving the documentation so that it's clearer how the Slack backend expects ACLs to be configured.
Description of the bug Using the SlackV3 backend and attempting to limit rooms/channels from where a command can be invoked, the allowed channels are blocked despite being allowed. The message "You're not allowed to access this command from this room" is returned, while the command should run.
To Reproduce Use SlackV3 backend and set config file as below. NOTE that using text mode will NOT produce the bug.
Expected behavior The command should be allowed and run from the #test-channel and #another-test-channel. Right now the command never runs.
Environment:
Additional context While investigating, I noticed this behaviour from the acl core plugin:
While debugging:
evaluates to:
which does not look like what is expected in order to match and let the command go through.
evaluates to:
which would work I suppose (if the plugin gets patched) and
evaluates to:
which I don't really care about since I'd rather match on room name rather than its Id.
Tried configuring with
thinking glob would do the trick but it does not work either.
The only way for this to work right now is configuring with:
which is very confusing, and probably does not translate well with text mode for debugging/testing.
Am I missing something, or is a patch needed for this to work as intended?