Add beforeRouteEnter guards for moderation pages
Closes #1494 (closed)
Adds beforeRouteEnter
guards to manage
routes. The permissions match those in the frontend. Unauthenticated users or users without sufficient permissions will be routed back to library page.
This change makes the store
available in the router for any other changes we may need to make and removes the router
import from the store auth
file. This is to break the dependency hell caused by importing each into one another.
Edited by Ciarán Ainsworth