Skip to content

Commit

Permalink
chore(platform): empty acl first when init
Browse files Browse the repository at this point in the history
  • Loading branch information
xiejay97 committed Jun 2, 2023
1 parent a5b8703 commit 2fe0df5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/platform/src/app/core/useInit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ export function useInit() {
const acl = useACL();

return (user: AppUser) => {
acl.set([]);
acl.setFull(user.permission.includes(ROLE_ACL.super_admin));
acl.set(user.permission);
acl.add(user.permission);

GlobalStore.set('appUser', user);

Expand Down

0 comments on commit 2fe0df5

Please sign in to comment.