-
Notifications
You must be signed in to change notification settings - Fork 33
[$150] 403 Forbidden error returned for some users of CREATE/PUT/PATCH/DELETE calls to jobs, jobCandidates and resourceBookings endpoints #70
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
Comments
@nkumar-topcoder as I understand regular users should not be able to do any operations with jobs, jobCandidates, resourceBookings. |
@maxceem Regular tc user can create the job and view the job (they create). Same applies for job candidates. |
@nkumar-topcoder @maxceem , at present, regular users are able to create jobs even on projects they dont have access to. |
We have to fix permissions for Job, JobCandidates and ResourceBookings as per the next table #72 (comment). Note, that technically We already have a method For the next cases when requested by
We also have to allow Admins to perform all the actions same like BookingManagers. To do so we can update the logic here https://github.com/topcoder-platform/taas-apis/blob/dev/app-routes.js#L52-L54:
|
Contest https://www.topcoder.com/challenges/30159302 has been created for this ticket. |
@imcaizheng this is open for pick up now. This has a higher priority for us in comparison with |
Contest https://www.topcoder.com/challenges/30159302 has been updated - it has been assigned to aaron2017. |
PR created #77 |
@SathyaJayabal this is ready for testing on DEV. We implemented this as per permissions defined in the table #72 (comment) To test this functionality you might use a new folder in Postman collection named Test Permission Rules |
caused by permission updates for other endpoints via issue #70
@maxceem , for GET taas-teams, for member user role , the following error is displayed Same case for All other permissions work as expected. |
Great catch @SathyaJayabal. This is fixed now. Could you please, try it once more. |
@maxceem verified this is working as expected. |
@SathyaJayabal this is ready for QA on DEV. |
@maxceem , the GET taas-teams endpoint is displaying a "forbidden" error for all user roles |
@SathyaJayabal there was some issue with configuration in the DEV environment. It's fixed now, could you please try again. |
@maxceem , this issue is still not fixed. |
@SathyaJayabal Postman collection had been updated. Please reload the Postman collection and environment files. Note that we don't need to refresh tokens before making requests now. |
@imcaizheng , I have updated the postman collection, but we still have the issue |
@SathyaJayabal It is because user After created user |
@imcaizheng , Oh I see, Thanks for creating the user in v5. We will test again. |
@maxceem @imcaizheng , permissions work as defined in #72 (comment) |
Thank you @SathyaJayabal and @imcaizheng! Closing this issue. |
Payment task has been updated: https://software.topcoder.com/review/actions/ViewProjectDetails?pid=30159302 |
user: TCConManager
Roles: “Topcoder User”, “Connect Manager”
403 Forbidden error returned for the following :
endpoints
500 Internal server error for the following:
endpoints
jobs: PUT/PATCH
The text was updated successfully, but these errors were encountered: