Don't consider admin app access as creator access

This commit is contained in:
Andrew Kingston 2023-11-24 16:15:42 +00:00
parent a05fc97715
commit d8b646de29
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ export function hasAppCreatorPermissions(user?: User | ContextUser): boolean {
return _.flow( return _.flow(
_.get("roles"), _.get("roles"),
_.values, _.values,
_.find(x => ["CREATOR", "ADMIN"].includes(x)), _.find(x => x === "CREATOR"),
x => !!x x => !!x
)(user) )(user)
} }