Description: Create the Courses.tsx component as the central page for course management, accessible based on user roles.
Tasks:
Implement a dynamic CoursesTable.tsx that lists all courses but restricts visibility based on user access (only courses that the person has access to).
Include buttons for editing each course, visible only to instructors and the owner.
Add a prominent "Add Course" button, also limited to visibility by instructors and owners.
Expected Outcome:
A functional Courses.tsx page that smartly filters and displays courses according to user permissions, with appropriate management options (add, edit).
Description: Create the
Courses.tsx
component as the central page for course management, accessible based on user roles.CoursesTable.tsx
that lists all courses but restricts visibility based on user access (only courses that the person has access to).Expected Outcome:
Courses.tsx
page that smartly filters and displays courses according to user permissions, with appropriate management options (add, edit).