-
Notifications
You must be signed in to change notification settings - Fork 333
WPB-18191: Add route to collaborator permissions from team #4697
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
base: gdifolco/WPB-18190_collaborator-delete-endpoint
Are you sure you want to change the base?
WPB-18191: Add route to collaborator permissions from team #4697
Conversation
guardPermission (tUnqualified zUser) team TeamMember.UpdateTeamCollaborator InsufficientRights | ||
Store.updateTeamCollaborator user team perms | ||
unless (Set.member ImplicitConnection perms) $ | ||
-- TODO gdf remove O2O conversations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
689dd19
to
252bc04
Compare
252bc04
to
ae16812
Compare
8e873f3
to
78aea4e
Compare
ae16812
to
a2cfeab
Compare
a2cfeab
to
a423074
Compare
83eb7a1
to
c1f5acf
Compare
4fa59cc
to
7a2e3ff
Compare
I cannot reproduce the error, which seems not related to my changes. |
c1f5acf
to
0969d6d
Compare
7a2e3ff
to
607cfcf
Compare
c5e0a60
to
30c92d0
Compare
607cfcf
to
7d0a8c3
Compare
Does not seem related
|
32ad69b
to
3160115
Compare
8d1a9b6
to
aa0dcda
Compare
5eb2959
to
c510050
Compare
aa0dcda
to
280606b
Compare
741ffd8
to
0ec3937
Compare
3252544
to
9bc5ec3
Compare
9bc5ec3
to
13f60b0
Compare
bea7d22
to
f114414
Compare
integration/test/API/Brig.hs
Outdated
updateTeamCollaborator :: (MakesValue owner, MakesValue collaborator, HasCallStack) => owner -> String -> collaborator -> [String] -> App Response | ||
updateTeamCollaborator owner tid collaborator permissions = do | ||
(_, collabId) <- objQid collaborator | ||
req <- baseRequest owner Brig Versioned $ joinHttpPath ["teams", tid, "collaborators", collabId] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
req <- baseRequest owner Brig Versioned $ joinHttpPath ["teams", tid, "collaborators", collabId] | |
req <- baseRequest owner Galley Versioned $ joinHttpPath ["teams", tid, "collaborators", collabId] |
also move to another module.
@@ -260,3 +260,33 @@ testRemoveMemberInTeamConversation = do | |||
resp.status `shouldMatchInt` 200 | |||
otherMembers <- asList (resp.json %. "members.others") | |||
traverse (%. "qualified_id") otherMembers `shouldMatchSet` traverse (%. "qualified_id") [owner, alice] | |||
|
|||
testUpdateMember :: (HasCallStack) => App () | |||
testUpdateMember = do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
testUpdateMember = do | |
testUpdateCollaborator = do |
f7bee64
to
1c458bf
Compare
https://wearezeta.atlassian.net/browse/WPB-18191
Checklist
changelog.d