Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • funkwhale funkwhale
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 396
    • Issues 396
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • funkwhale
  • funkwhalefunkwhale
  • Merge requests
  • !1351

Add beforeRouteEnter guards for moderation pages

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Ciarán Ainsworth requested to merge 1494-implement-access-control-on-the-moderation-pages into develop Jul 22, 2021
  • Overview 8
  • Commits 5
  • Pipelines 6
  • Changes 3

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 Jul 26, 2021 by Ciarán Ainsworth
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: 1494-implement-access-control-on-the-moderation-pages