mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-25 06:04:06 +00:00
Finalize Typescript restructure
This commit is contained in:
@@ -14,9 +14,9 @@ onMounted(() => {
|
||||
const meta = route.meta as { ability?: string; isOwner?: boolean }
|
||||
|
||||
if (meta.ability && !userStore.hasAbilities(meta.ability)) {
|
||||
router.push({ name: 'account.settings' })
|
||||
router.push({ name: 'settings.account' })
|
||||
} else if (meta.isOwner && !userStore.isOwner) {
|
||||
router.push({ name: 'account.settings' })
|
||||
router.push({ name: 'settings.account' })
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user