somewhere
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
export default function ({ $auth, redirect }) {
|
||||
if ($auth.loggedIn && $auth.hasScope('admin')) return true
|
||||
else return redirect('/auth/login-register')
|
||||
}
|
||||
Reference in New Issue
Block a user