fix: add custom slug check to user

This commit is contained in:
Scott Wilson
2024-11-22 13:09:47 -08:00
parent 24b50651c9
commit e3eb14bfd9
2 changed files with 7 additions and 2 deletions
@@ -185,7 +185,7 @@ export const identityProjectServiceFactory = ({
({ role }) =>
!Object.values(ProjectMembershipRole)
// we don't want to include custom in this check;
// this unintentionally lets users set slug to custom which is reserved
// this unintentionally enables setting slug to custom which is reserved
.filter((r) => r !== ProjectMembershipRole.Custom)
.includes(role as ProjectMembershipRole)
);