mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-26 10:49:00 +02:00
Update scanner v3, add isActive support for users
This commit is contained in:
parent
ddbf678a8b
commit
4e92ea3992
13 changed files with 230 additions and 160 deletions
|
@ -24,13 +24,13 @@ class User {
|
|||
return this.type === 'root'
|
||||
}
|
||||
get canDelete() {
|
||||
return !!this.permissions.delete
|
||||
return !!this.permissions.delete && this.isActive
|
||||
}
|
||||
get canUpdate() {
|
||||
return !!this.permissions.update
|
||||
return !!this.permissions.update && this.isActive
|
||||
}
|
||||
get canDownload() {
|
||||
return !!this.permissions.download
|
||||
return !!this.permissions.download && this.isActive
|
||||
}
|
||||
|
||||
getDefaultUserSettings() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue