talawa-api
talawa-api copied to clipboard
NoMongo: Updating profile API error
Describe the bug
I was working on the following page
And when send a mutation to the server i get the following response
{ "data": { "updateUser": null }, "errors": [ { "message": "This action is forbidden on the resources associated to the provided arguments.", "locations": [ { "line": 2, "column": 3 } ], "path": [ "updateUser" ], "extensions": { "code": "forbidden_action_on_arguments_associated_resources", "issues": [ { "argumentPath": [ "input", "id" ], "message": "You cannot update the user record associated to you with this action." } ] } } ] }
Expected behavior Admin should be able to update the profile
Actual behavior Error is thrown
Screenshots If applicable, add screenshots to help explain your problem.
Additional details Add any other context or screenshots about the feature request here.
Potential internship candidates
Please read this if you are planning to apply for a Palisadoes Foundation internship
- https://github.com/PalisadoesFoundation/talawa/issues/359