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

fix(authsome-mode): deny manuscript access from link for reviewers too

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