Missing commited file
This commit is contained in:
parent
0a71d160a5
commit
e3f6baecd4
|
@ -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
|
||||
},
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue