Skip to content

Commit

Permalink
add preRegisterCheck for admin
Browse files Browse the repository at this point in the history
  • Loading branch information
maltejur committed Jan 31, 2023
1 parent e38b1c5 commit 950d8b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,7 @@ export default {
},
],
hidden: false,
preRegisterCheck(user) {
return user.role.admin_access;
},
} as ModuleConfig;

0 comments on commit 950d8b3

Please sign in to comment.