mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
I hacked the error.vue to catch the default 404 error message and to display a localized message instead. I found no better way to do it. Any ideas?
6 lines
162 B
JavaScript
6 lines
162 B
JavaScript
export default ({ store, error }) => {
|
|
if (!store.getters['auth/isAdmin']) {
|
|
return error({ statusCode: 403, message: 'error-pages.not-authorized' })
|
|
}
|
|
}
|