mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-14 00:32:55 +02:00
@@ -104,7 +104,12 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
async asyncData({ params, redirect, app }) {
|
||||
async asyncData({ store, redirect, app }) {
|
||||
if (!store.getters['user/getIsAdminOrUp']) {
|
||||
redirect('/')
|
||||
return
|
||||
}
|
||||
|
||||
const users = await app.$axios
|
||||
.$get('/api/users')
|
||||
.then((res) => {
|
||||
|
||||
Reference in New Issue
Block a user