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

fix(authsome-mode): EiC check made on fragment instead of collection

parent 44f12bb5
No related branches found
No related tags found
3 merge requests!222Sprint #26,!217Sprint #26,!195feat(authsome-mode): Added rule for PATCH collection
...@@ -378,7 +378,7 @@ async function applyEditorInChiefPolicy(user, operation, object, context) { ...@@ -378,7 +378,7 @@ async function applyEditorInChiefPolicy(user, operation, object, context) {
} }
} }
if (operation === 'PATCH') { if (operation === 'PATCH') {
if (get(object, 'current.type') === 'collection') { if (get(object, 'current.type') === 'fragment') {
return false return false
} }
} }
......
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