Don't consider admin app access as creator access
This commit is contained in:
parent
a05fc97715
commit
d8b646de29
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue