Skip to content

Commit

Permalink
[AC-1786] deprecate manager role (#6931)
Browse files Browse the repository at this point in the history
* add deprecation message

* hide manager option

* deprecate manager enum
  • Loading branch information
willmartian authored Dec 12, 2023
1 parent 25c5bb1 commit 02ba26e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
3 changes: 3 additions & 0 deletions libs/common/src/admin-console/models/domain/organization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 02ba26e

Please sign in to comment.