mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-15 01:02:50 +02:00
@@ -87,6 +87,11 @@
|
||||
<script>
|
||||
export default {
|
||||
asyncData({ redirect, store }) {
|
||||
if (!store.getters['user/getIsAdminOrUp']) {
|
||||
redirect('/')
|
||||
return
|
||||
}
|
||||
|
||||
if (!store.state.libraries.currentLibraryId) {
|
||||
return redirect('/config')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user