mirror of
https://github.com/bitwarden/browser
synced 2026-01-10 12:33:26 +00:00
org vault listing from apis
This commit is contained in:
@@ -21,4 +21,15 @@ export class Organization {
|
||||
this.type = obj.type;
|
||||
this.enabled = obj.enabled;
|
||||
}
|
||||
|
||||
get canAccess() {
|
||||
if (this.type === OrganizationUserType.Owner) {
|
||||
return true;
|
||||
}
|
||||
return this.enabled && this.status === OrganizationUserStatusType.Confirmed;
|
||||
}
|
||||
|
||||
get isAdmin() {
|
||||
return this.type === OrganizationUserType.Owner || this.type === OrganizationUserType.Admin;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user