[AC-1786] deprecate manager role (#6931)

* add deprecation message

* hide manager option

* deprecate manager enum
This commit is contained in:
Will Martin 2023-12-12 09:43:47 -05:00 committed by GitHub
parent 25c5bb147d
commit 02ba26e53c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 1 deletions

View File

@ -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"

View File

@ -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,
}

View File

@ -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;