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

fix(authsome-mode): refactor code

parent e8337e65
No related branches found
No related tags found
3 merge requests!222Sprint #26,!217Sprint #26,!195feat(authsome-mode): Added rule for PATCH collection
......@@ -330,8 +330,7 @@ async function applyAdminPolicy(user, operation, object, context) {
const collection = await context.models.Collection.find(
get(object, 'current.collectionId'),
)
const isLast = helpers.isLastFragment(collection, get(object, 'current'))
return isLast
return helpers.isLastFragment(collection, get(object, 'current'))
}
}
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