mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
[AC-1786] deprecate manager role (#6931)
* add deprecation message * hide manager option * deprecate manager enum
This commit is contained in:
@@ -2,6 +2,10 @@ export enum OrganizationUserType {
|
||||
Owner = 0,
|
||||
Admin = 1,
|
||||
User = 2,
|
||||
/**
|
||||
* @deprecated
|
||||
* This is deprecated with the introduction of Flexible Collections.
|
||||
*/
|
||||
Manager = 3,
|
||||
Custom = 4,
|
||||
}
|
||||
|
||||
@@ -131,6 +131,9 @@ export class Organization {
|
||||
|
||||
/**
|
||||
* Whether a user has Manager permissions or greater
|
||||
*
|
||||
* @deprecated
|
||||
* This is deprecated with the introduction of Flexible Collections.
|
||||
*/
|
||||
get isManager() {
|
||||
return this.type === OrganizationUserType.Manager || this.isAdmin;
|
||||
|
||||
Reference in New Issue
Block a user