add team manager role

This commit is contained in:
Francis Cao 2024-05-03 14:31:08 -07:00
parent ca2a7f3354
commit 9c06bc9893
9 changed files with 34 additions and 8 deletions

View file

@ -23,7 +23,7 @@ const schema = {
POST: yup.object().shape({
role: yup
.string()
.matches(/team-member|team-view-only/i)
.matches(/team-member|team-view-only|team-manager/i)
.required(),
}),
};

View file

@ -25,7 +25,7 @@ const schema = {
userId: yup.string().uuid().required(),
role: yup
.string()
.matches(/team-member|team-view-only/i)
.matches(/team-member|team-view-only|team-manager/i)
.required(),
}),
};