Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(admin): fix bot workspace scoping #12123

Merged
merged 2 commits into from
Sep 14, 2022
Merged

fix(admin): fix bot workspace scoping #12123

merged 2 commits into from
Sep 14, 2022

Conversation

allardy
Copy link
Member

@allardy allardy commented Sep 7, 2022

Bot ID are unique server-wide. If a user has access to workspace A and also to workspace B, he could create/import a bot in the other workspace with the same id. This would overwrite the original bot, but would also display its ID in both workspace.

Only the latest copy existed however, so anyone deleting the bot from either workspace would delete it from both.

@slvnperron
Copy link
Member

LGTM! I would call it assert instead of check, as it throws when the condition is not met and doesn't return a bool

EFF
EFF previously approved these changes Sep 7, 2022
@allardy allardy merged commit 63bfa0d into master Sep 14, 2022
@slvnperron slvnperron deleted the ya-fix-bot-workspace branch June 22, 2023 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants