fix: async checkroles issue

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

View file

@ -17,7 +17,8 @@ function AuthenticatedClientElement(props: AuthenticatedClientElementProps) {
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;