Hide the admin button for non-admins
There are several types of user with access to the review dashboard, but only administrators are allowed to view the administrator pane. This updates the admin dashboard to only render the admin button for users with admin permission. It also adds an ID to the button so that test can reliably check for the presence of the button. Issue #2724
Showing
- hypha/apply/dashboard/templates/dashboard/dashboard.html 6 additions, 4 deletionshypha/apply/dashboard/templates/dashboard/dashboard.html
- hypha/apply/dashboard/tests/test_views.py 33 additions, 0 deletionshypha/apply/dashboard/tests/test_views.py
- hypha/apply/users/tests/factories.py 28 additions, 1 deletionhypha/apply/users/tests/factories.py
Loading
Please register or sign in to comment