codeforamerica / classifyr

A tool for aggregating and crowd-sourcing the classification emergency call data
MIT License
0 stars 1 forks source link

Redirect to classifications from dashboard #62

Closed T-Dnzt closed 2 years ago

T-Dnzt commented 2 years ago

Overview

Redirect users from the dashboard to the classifications page. To ensure all users can see the classifications page, the permission index :classifications was added to all roles.

Type of change

Related tickets

Fixes #48

Changes

Notes

As I expect this change to be temporary, I have not updated the root_path. This means that if a user attempts to access a page they are not authorized to see, they will be redirect to the root_path (which is the dashboard) and then redirected once more to the classifications page. Let me know if you think this change will be longer term than I thought and I will adjust the code. If so, I might remove the dashboard nav item entirely for the time being.