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

Make adding users implicit in CreateConversation permission. #579

Merged
merged 3 commits into from
Jan 22, 2019

Conversation

fisx
Copy link
Contributor

@fisx fisx commented Jan 21, 2019

without this, collaborators can only create empty conversations, but they need to create 1:1 convs, too.

@@ -84,7 +84,6 @@ createTeamGroupConv zusr zcon tinfo body = do
let uu = filter (/= zusr) $ map (view userId) mems
checkedConvSize uu
else do
void $ permissionCheck zusr AddRemoveConvMember mems
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's change this into sth like: if user has no AddConvMember permission, then ensure size <= 1

Copy link
Contributor

@tiago-loureiro tiago-loureiro left a comment

Choose a reason for hiding this comment

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

Let's ensure no large groups are created by collaborators

@fisx
Copy link
Contributor Author

fisx commented Jan 22, 2019

Let's ensure no large groups are created by collaborators

it's a change in plan that clients should limit the kinds of conversations a collaborator can create, but that seems fine. i have no strong opinion either way.

@fisx fisx merged commit b28174b into develop Jan 22, 2019
@fisx fisx deleted the fisx-fix-perms branch January 22, 2019 10:49
@fisx fisx mentioned this pull request Jan 24, 2019
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

2 participants