mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
minor on isAdmin middleware
This commit is contained in:
parent
906dca2b10
commit
d7d1cd1617
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
export default async function ({ req, redirect }) {
|
||||
if (!req.user.is_admin) {
|
||||
export default async function ({ $auth, redirect }) {
|
||||
if (!$auth.user.is_admin) {
|
||||
return redirect('/')
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue