Allow creators to use the builder portal
This commit is contained in:
parent
2cac5c9e8c
commit
974b117500
|
@ -76,7 +76,11 @@ export function hasBuilderPermissions(user?: User | ContextUser): boolean {
|
||||||
if (!user) {
|
if (!user) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return user.builder?.global || hasAppBuilderPermissions(user)
|
return (
|
||||||
|
user.builder?.global ||
|
||||||
|
hasAppBuilderPermissions(user) ||
|
||||||
|
hasCreatorPermissions(user)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// checks if a user is capable of being an admin
|
// checks if a user is capable of being an admin
|
||||||
|
|
Loading…
Reference in New Issue