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

Merge branch 'develop' of gitlab.coko.foundation:xpub/xpub-faraday into develop

parents 6b9640f7 cba32587
No related branches found
No related tags found
1 merge request!13Sprint #14
...@@ -51,7 +51,7 @@ class Collection { ...@@ -51,7 +51,7 @@ class Collection {
async updateStatus({ newStatus }) { async updateStatus({ newStatus }) {
this.collection.status = newStatus this.collection.status = newStatus
this.collection.visibleStatus = statuses[this.collection.status].public this.collection.visibleStatus = statuses[this.collection.status].private
await this.collection.save() await this.collection.save()
} }
......
...@@ -119,7 +119,9 @@ async function authenticatedUser(user, operation, object, context) { ...@@ -119,7 +119,9 @@ async function authenticatedUser(user, operation, object, context) {
} }
const collectionPermission = userPermissions.find( const collectionPermission = userPermissions.find(
p => p.objectId === collection.id, p =>
p.objectId === collection.id ||
collection.fragments.includes(p.objectId),
) )
if ( if (
publicStatusesPermissions.includes( publicStatusesPermissions.includes(
......
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