mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-13 16:34:39 +00:00
6 lines
166 B
JavaScript
6 lines
166 B
JavaScript
export default ({ store, error }) => {
|
|
if (!store.getters['auth/isModerator']) {
|
|
return error({ statusCode: 403, message: 'error-pages.not-authorized' })
|
|
}
|
|
}
|