Skip to content
Snippets Groups Projects
Commit e8b6b530 authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

Merge branch 'HIN-1148-edit-profile' into 'develop'

feat(EditProfile): HE, author and reviewer can now edit their profiles

See merge request !184
parents 0df0de11 aeffbe20
No related branches found
No related tags found
3 merge requests!196S25 - EiC submit revision,!189S25,!184feat(EditProfile): HE, author and reviewer can now edit their profiles
......@@ -235,7 +235,10 @@ async function applyAuthenticatedUserPolicy(user, operation, object, context) {
})
}
if (get(object, 'type') === 'user' && get(object, 'id') === user.id) {
if (
get(object, 'current.type') === 'user' &&
get(object, 'current.id') === user.id
) {
return {
filter: body =>
pick(body, [
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment