finalized application acceptance system and started making types shared across front and backend
This commit is contained in:
@@ -42,7 +42,6 @@ router.beforeEach(async (to) => {
|
||||
|
||||
// Make sure user state is loaded before checking
|
||||
if (!user.loaded) {
|
||||
console.log('loaduser')
|
||||
await user.loadUser();
|
||||
}
|
||||
|
||||
@@ -55,12 +54,10 @@ router.beforeEach(async (to) => {
|
||||
}
|
||||
|
||||
|
||||
// Must be a member
|
||||
if (to.meta.memberOnly && user.state !== 'member') {
|
||||
return '/unauthorized'
|
||||
}
|
||||
|
||||
console.log(!user.hasRole("Dev"));
|
||||
// // Must be a member
|
||||
// if (to.meta.memberOnly && user.state !== 'member') {
|
||||
// return '/unauthorized'
|
||||
// }
|
||||
|
||||
// // Must have specific role
|
||||
// if (to.meta.roles && !user.hasRole('Dev') && !user.hasAnyRole(to.meta.roles)) {
|
||||
|
||||
Reference in New Issue
Block a user