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] Do not add default roles for users without services field #6594

Merged
merged 1 commit into from
Apr 4, 2017

Conversation

sampaiodiego
Copy link
Member

@RocketChat/core

Closes #1848

The addition of default roles by #6028 also added default roles to livechat guests. Since the idea of default roles was to add them only for OAuth created users, I'm now checking if the services field exists and the services.password does not. This seems to be a better way to know if a user was created by an OAuth or not.

@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-6594 April 4, 2017 18:46 Inactive
@engelgabriel engelgabriel added this to the 0.55.0 milestone Apr 4, 2017
@engelgabriel engelgabriel merged commit 3da9821 into develop Apr 4, 2017
@engelgabriel engelgabriel deleted the fix-livechat-guests-getting-user-role branch April 4, 2017 20:24
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.

Bug(?): livechat guests can join public channels
3 participants