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

Restrict channel invitations to non-guest accounts #90

Merged
merged 2 commits into from
Apr 14, 2022
Merged

Conversation

streamer45
Copy link
Contributor

Summary

We hit an issue on our Community server where a guest was getting automatically added to channels they were not supposed to be in when joining a team.

PR adds an option to conditionally include guests when adding users to channels. I've kept it opt-in (default is false) as it seems to me like the more secure approach but feel free to let me know if you think it's better to have it opt-out (to retain the existing behaviour that is).

Fixes #63

@streamer45 streamer45 added the 2: Dev Review Requires review by a core committer label Apr 6, 2022
@streamer45 streamer45 requested a review from hanzei April 6, 2022 08:14
@streamer45 streamer45 self-assigned this Apr 6, 2022
Copy link
Contributor

@hanzei hanzei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the fix 👍

@hanzei hanzei added this to the v1.3.0 milestone Apr 6, 2022
Copy link
Contributor

@jfrerich jfrerich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving with a very small nitpick to remove the period in the code comment.

server/configuration.go Outdated Show resolved Hide resolved
Co-authored-by: Jason Frerich <jason.frerich@mattermost.com>
@streamer45 streamer45 added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Apr 14, 2022
@streamer45 streamer45 merged commit a6fd7df into master Apr 14, 2022
@streamer45 streamer45 deleted the guests branch April 14, 2022 07:17
@mickmister mickmister mentioned this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow restricting welcomebot invitations to non-guest accounts
3 participants