export default function({store, redirect}) {
  const isAdmin = store.getters['auth/isAdmin']

  if (!isAdmin) {
    // navigate later to notAuthorized page
    // return redirect('/')
    return redirect('/notAuthorized')
  }
}