Appearance
Part 10 - Permissions, Error pages & Profile
PREREQUISITES
- Finished Laravel exercise -> Part 9 - Authentication
- Finished Laravel -> Authentication
- Finished Laravel -> Error pages
- Finished Laravel -> User Profile
Permissions
Non-authenticated users (guests)
- Guests (e.g. students interested in some courses) can only access the home page and the courses dashboard (but the buttons 'Manage students' are not visible in the course cards)
Authenticated users without admin rights
- Authenticated users without admin rights (e.g. lecturers interested in a list of students enrolled for their course) can access the home page, the courses dashboard (with 'Manage students' buttons) and the course detail pages
REMARK
In order to be able to test this behaviour, you should add a user/lecturer (e.g. Peter Peters) without admin rights to your database
Authenticated users with admin rights
- Authenticated users with admin rights (e.g. programme heads, secretaries or lecturers who manage the student programmes) obviously can access all the pages that are accessible by a user without admin rights as well
- On top of these functionalities, they will be able to perform some administrative tasks
- For one of these tasks, i.e. creating, updating and deleting programmes, you should add a Programmes link to the navbar. The link should only be visible to authenticated users. The programming logic behind this additional functionality is tackled in the next part of this exercise.
Error pages
- Make sure all error pages use the Student Administration layout component
- Errorpages 401, 403, 419, 429, 500 and 503
- Errorpage 404
- Make sure login and register links don't show
Profile
- Make sure your name changes immediately in the navbar when you change it using "Update profile"
- Enable the use of profile pictures and show them in the navbar