Skip to content
Snippets Groups Projects
Commit 18c8525b authored by Alexandru Munteanu's avatar Alexandru Munteanu
Browse files

fix authsome

parent ac100881
No related branches found
No related tags found
1 merge request!13Sprint #14
......@@ -114,9 +114,6 @@ async function authenticatedUser(user, operation, object, context) {
user,
Team: context.models.Team,
})
if (collection.owners.map(o => o.id).includes(user.id)) {
return collection
}
const collectionPermission = userPermissions.find(
p =>
......@@ -130,6 +127,7 @@ async function authenticatedUser(user, operation, object, context) {
) {
collection.visibleStatus = statuses[status].public
}
return collection
},
}
......
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