mattermost-community / mattermost-plugin-welcomebot

Apache License 2.0
64 stars 41 forks source link

Restrict channel invitations to non-guest accounts #90

Closed streamer45 closed 2 years ago

streamer45 commented 2 years ago

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 https://github.com/mattermost/mattermost-plugin-welcomebot/issues/63