Skip to content
Snippets Groups Projects
Verified Commit e3f6baec authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Missing commited file

parent 0a71d160
No related branches found
No related tags found
No related merge requests found
......@@ -111,7 +111,14 @@ export default {
if (!this.$store.state.auth.authenticated) {
return false
}
return this.$store.state.auth.availablePermissions['library']
let libraryPermission = this.$store.state.auth.availablePermissions['library']
let objData = this.object || {}
let isOwner = false
if (objData.attributed_to) {
isOwner = this.$store.state.auth.fullUsername === objData.attributed_to.full_username
}
return libraryPermission || isOwner
},
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment