mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-15 09:24:34 +00:00
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' })
|
|
}
|
|
}
|