Skip to content

[FIX] Do not add default roles for users without services field - #6594

Merged
engelgabriel merged 1 commit into
developfrom
fix-livechat-guests-getting-user-role
Apr 4, 2017
Merged

engelgabriel merged 1 commit into
developfrom
fix-livechat-guests-getting-user-role

Conversation

@sampaiodiego

Copy link
Copy Markdown
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

This branch was previously deployed

1 inactive deployment
rocket-chat-pr-6594 — 2d13f078 Deployed Apr 4, 2017 by engelgabriel
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