mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-22 11:45:59 +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>
|
</div>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</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
|
<input
|
||||||
type="radio"
|
type="radio"
|
||||||
id="userTypeManager"
|
id="userTypeManager"
|
||||||
|
@ -2,6 +2,10 @@ export enum OrganizationUserType {
|
|||||||
Owner = 0,
|
Owner = 0,
|
||||||
Admin = 1,
|
Admin = 1,
|
||||||
User = 2,
|
User = 2,
|
||||||
|
/**
|
||||||
|
* @deprecated
|
||||||
|
* This is deprecated with the introduction of Flexible Collections.
|
||||||
|
*/
|
||||||
Manager = 3,
|
Manager = 3,
|
||||||
Custom = 4,
|
Custom = 4,
|
||||||
}
|
}
|
||||||
|
@ -131,6 +131,9 @@ export class Organization {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether a user has Manager permissions or greater
|
* Whether a user has Manager permissions or greater
|
||||||
|
*
|
||||||
|
* @deprecated
|
||||||
|
* This is deprecated with the introduction of Flexible Collections.
|
||||||
*/
|
*/
|
||||||
get isManager() {
|
get isManager() {
|
||||||
return this.type === OrganizationUserType.Manager || this.isAdmin;
|
return this.type === OrganizationUserType.Manager || this.isAdmin;
|
||||||
|
Loading…
Reference in New Issue
Block a user