fix publishing app as a superadmin

This commit is contained in:
Ruben Fiszel
2023-03-09 02:08:52 +01:00
parent ed29d51c36
commit 96ff2eebc1
@@ -168,7 +168,11 @@
)
policy.triggerables = Object.fromEntries(allTriggers.filter((x) => x.length > 0))
policy.on_behalf_of = `u/${$userStore?.username}`
if (!$userStore?.username?.includes('@')) {
policy.on_behalf_of = `u/${$userStore?.username}`
} else {
policy.on_behalf_of = $userStore?.email
}
policy.on_behalf_of_email = $userStore?.email
}
async function createApp(path: string) {