Description: Autocomplete does not filter out existing staff and admins in the autocomplete list on the ManageStaffPanel.tsx (Manage Staff) view.
Expected behaviour: Autocomplete should filter out existing staff and admins from the autocomplete list so that admins cannot be added as a staff member (since they already have admin privileges) and staff members cannot be re-added.
Steps to Reproduce:
1) Add an admin or staff member to a course, as a staff member.
2) Type the admin or staff member into the autocomplete search box again.
3) Error appears: You will see the user appear again.
Screenshot of step 3 below:
Screenshot of admin and staff member on team:
(Please ignore their duplicate names. I used the same name twice for quickly bootstrapping these roles in my development environment)
Severity: Low
Description: Autocomplete does not filter out existing staff and admins in the autocomplete list on the ManageStaffPanel.tsx (Manage Staff) view.
Expected behaviour: Autocomplete should filter out existing staff and admins from the autocomplete list so that admins cannot be added as a staff member (since they already have admin privileges) and staff members cannot be re-added.
Steps to Reproduce: 1) Add an admin or staff member to a course, as a staff member. 2) Type the admin or staff member into the autocomplete search box again. 3) Error appears: You will see the user appear again.
Screenshot of step 3 below:
Screenshot of admin and staff member on team: (Please ignore their duplicate names. I used the same name twice for quickly bootstrapping these roles in my development environment)