mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-04 10:14:36 +02:00
Update:Authors page check user can access library items and can edit
This commit is contained in:
parent
4f7588c87d
commit
7f27eabf3e
4 changed files with 11 additions and 7 deletions
|
@ -11,7 +11,7 @@
|
|||
<div class="flex items-center mb-8">
|
||||
<h1 class="text-2xl">{{ author.name }}</h1>
|
||||
|
||||
<button class="w-8 h-8 rounded-full flex items-center justify-center mx-4 cursor-pointer text-gray-300 hover:text-warning transform hover:scale-125 duration-100" @click="editAuthor">
|
||||
<button v-if="userCanUpdate" class="w-8 h-8 rounded-full flex items-center justify-center mx-4 cursor-pointer text-gray-300 hover:text-warning transform hover:scale-125 duration-100" @click="editAuthor">
|
||||
<span class="material-icons text-base">edit</span>
|
||||
</button>
|
||||
</div>
|
||||
|
@ -68,6 +68,9 @@ export default {
|
|||
},
|
||||
authorSeries() {
|
||||
return this.author.series || []
|
||||
},
|
||||
userCanUpdate() {
|
||||
return this.$store.getters['user/getUserCanUpdate']
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue