mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-07 16:04:54 +02:00
Update:User type admin permissions to create podcasts and download episodes #507
This commit is contained in:
parent
4dac8ac16c
commit
729fdd5c9f
3 changed files with 26 additions and 6 deletions
|
@ -33,6 +33,9 @@ class User {
|
|||
get isAdmin() {
|
||||
return this.type === 'admin'
|
||||
}
|
||||
get isAdminOrUp() {
|
||||
return this.isAdmin || this.isRoot
|
||||
}
|
||||
get canDelete() {
|
||||
return !!this.permissions.delete && this.isActive
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue