refactor: remove redundant admin checks from pages (now handled by router)
This commit is contained in:
@@ -141,11 +141,6 @@
|
||||
result: null,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
if (!this.authStore.isAdmin) {
|
||||
this.$router.push('/');
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
formatItems(ids) {
|
||||
if (!ids || ids.length === 0) return [];
|
||||
|
||||
Reference in New Issue
Block a user