mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-21 11:24:53 +02:00
Fix use first accessible library depending on display order, default library id checked on server when authenticating
This commit is contained in:
parent
0dd219f303
commit
08e1782253
7 changed files with 22 additions and 24 deletions
|
@ -1,7 +1,9 @@
|
|||
export default function ({ store, redirect, route, app }) {
|
||||
// If the user is not authenticated
|
||||
if (!store.state.user.user) {
|
||||
if (route.name === 'batch' || route.name === 'index') return redirect('/login')
|
||||
if (route.name === 'batch' || route.name === 'index') {
|
||||
return redirect('/login')
|
||||
}
|
||||
return redirect(`/login?redirect=${route.fullPath}`)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue