mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: async checkroles issue
This commit is contained in:
parent
96fdab9b84
commit
7a1bedac66
1 changed files with 2 additions and 1 deletions
|
|
@ -17,7 +17,8 @@ function AuthenticatedClientElement(props: AuthenticatedClientElementProps) {
|
||||||
const user_roles_values = ["role_admin"];
|
const user_roles_values = ["role_admin"];
|
||||||
|
|
||||||
|
|
||||||
async function checkRoles() {
|
|
||||||
|
function checkRoles() {
|
||||||
const org_id = props.orgId;
|
const org_id = props.orgId;
|
||||||
const org_roles = auth.userInfo.user_object.orgs;
|
const org_roles = auth.userInfo.user_object.orgs;
|
||||||
const user_roles = auth.userInfo.user_object.roles;
|
const user_roles = auth.userInfo.user_object.roles;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue