fix: async checkroles issue

This commit is contained in:
swve 2023-06-22 20:46:10 +02:00
parent 96fdab9b84
commit 7a1bedac66

View file

@ -16,8 +16,9 @@ function AuthenticatedClientElement(props: AuthenticatedClientElementProps) {
const org_roles_values = ["admin", "owner"];
const user_roles_values = ["role_admin"];
async function checkRoles() {
function checkRoles() {
const org_id = props.orgId;
const org_roles = auth.userInfo.user_object.orgs;
const user_roles = auth.userInfo.user_object.roles;