mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-21 11:35:34 +01:00
[AC-1786] deprecate manager role (#6931)
* add deprecation message * hide manager option * deprecate manager enum
This commit is contained in:
parent
25c5bb147d
commit
02ba26e53c
@ -60,7 +60,10 @@
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="tw-mb-2 tw-flex tw-items-baseline">
|
||||
<div
|
||||
*ngIf="!(flexibleCollectionsEnabled$ | async)"
|
||||
class="tw-mb-2 tw-flex tw-items-baseline"
|
||||
>
|
||||
<input
|
||||
type="radio"
|
||||
id="userTypeManager"
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user