Update scanner v3, add isActive support for users

This commit is contained in:
Mark Cooper 2021-09-10 19:55:02 -05:00
parent ddbf678a8b
commit 4e92ea3992
13 changed files with 230 additions and 160 deletions

View file

@ -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() {