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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue