Skip to content

Restful Invites #517

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

Merged
merged 31 commits into from
Mar 24, 2020
Merged

Restful Invites #517

merged 31 commits into from
Mar 24, 2020

Conversation

maxceem
Copy link
Contributor

@maxceem maxceem commented Mar 23, 2020

No description provided.

NoisyLanius and others added 30 commits January 29, 2020 21:45
Submission For Topcoder Project Service - Update Invite Endpoints part1
# Conflicts:
#	docs/Project API.postman_collection.json
Fixed units in src/projectMembers/create.spec.js
- also fix unit tests after enabling masking emails
# Conflicts:
#	package.json
#	src/routes/projectMemberInvites/create.js
#	src/routes/projectMemberInvites/get.js
#	src/routes/projectMemberInvites/list.js
# Conflicts:
#	src/routes/projectMemberInvites/create.js
#	src/routes/projectMemberInvites/create.spec.js
Permissions logic for updating and deleting permissions has been clarified.
Also, fixed issue when project managers cannot remove invites for other people.
we had the logic which removed "email" field from the allowed fields for non-admins
this logic has been rewritten to add "email" field to the allowed fields for admins to avoid accidental "email" leaking
stop retrieving additional fields which has been added to ES for members as they can be outdated
also, returning email from ES may leak it, while email should be only returned to admins as controlled by "getObjectsWithMemberDetails" method
…ocessing on invite(s) with following constraints:

  1. email field will be omitted from invite if the invite has defined userId
  2. email field (if existed) will be masked UNLESS current user has admin permissions OR current user created this invite
- also apply this post-processing when creating invite.
…m/tc-project-service into feature/restful-invites
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.

4 participants