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

feat(authsome-mode): Added rule for PATCH collection

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