Skip to content
Snippets Groups Projects
Commit cd3590d4 authored by Mihail Hagiu's avatar Mihail Hagiu
Browse files

feat(authsome-mode): Do not allow EiC to send or cancel invitations

parent 46a23da9
No related branches found
No related tags found
3 merge requests!222Sprint #26,!217Sprint #26,!197Hin 1160 eic cannot invite
...@@ -417,6 +417,20 @@ async function applyEditorInChiefPolicy(user, operation, object, context) { ...@@ -417,6 +417,20 @@ async function applyEditorInChiefPolicy(user, operation, object, context) {
return false return false
} }
} }
if (operation === 'POST') {
if (
get(object, 'path') ===
'/api/collections/:collectionId/fragments/:fragmentId/invitations'
)
return false
}
if (operation === 'DELETE') {
if (
get(object, 'path') ===
'/api/collections/:collectionId/invitations/:invitationId'
)
return false
}
return true return true
} }
......
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