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
[X] New feature (non-breaking change which adds functionality)
Related tickets
Fixes #48
Changes
Redirect to classifications from dashboard
Add index :classifications permission to all roles
Remove link from data set card if users can't actually classify data
Fix specs
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.
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
index :classifications
permission to all rolesNotes
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 theroot_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 thedashboard
nav item entirely for the time being.