MIT-LCP / waveform-annotation

Platform for annotating physiological waveform data.
11 stars 4 forks source link

Allow admins to adjust admin control #24

Closed Lucas-Mc closed 3 years ago

Lucas-Mc commented 3 years ago

This change allows admins to adjust who are the other admins. To implement this, I added a button to the right side of the information listed for each user which states "Add admin" for users who are not already admins and "Remove admin" for user who already admins. Users can also adjust their own admin status so be careful! (remove buttons are in red to help reinforce... maybe I should have a "confirm" dialog also)

In the future, it would be nice to keep track of who is an admin on a per-project basis but I don't see us needing this for at least some time.