Homework 5 (Users and Permissions)

Due Mar 28, total of 100 points

You did not submit this assignment and received 0 points.

Description

In this assignment, you will implement user authentication and authorization features for your grading application, ensuring that different user types (students, TAs, and administrators) have appropriate access and permissions:

Your tasks include:

  1. User Authentication:
    • Identify the current user
    • Implement secure login and logout functionality
  2. Permissions and Access Control:
    • Define permissions for each user role
    • Implement view-level permissions (e.g., only TAs can grade assignments)
    • Add object-level permissions (e.g., students can only view their own submissions)
  3. Integration:
    • Update existing views to respect user permissions
    • Modify templates to show/hide elements based on user role

Note: Ensure that all sensitive operations are properly secured and that user data is handled safely.