Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Autocomplete does not filter out existing staff and admins in selection list #309

Open
andrewstec opened this issue Mar 25, 2020 · 0 comments

Comments

@andrewstec
Copy link
Contributor

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:
image

Screenshot of admin and staff member on team:
image
(Please ignore their duplicate names. I used the same name twice for quickly bootstrapping these roles in my development environment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant