mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-22 16:34:10 +01:00
Update:User type admin permissions to create podcasts and download episodes #507
This commit is contained in:
1 parent
4dac8ac16c
commit
729fdd5c9f
3 files changed
+26
-6
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user