1
0
Fork 0
mirror of synced 2024-10-02 10:08:09 +13:00

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

View file

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