-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Added Super User Functionality #1765
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, thanks for putting in the work to switch this around.
@@ -9,6 +9,9 @@ const EditUsers = ({ userToEdit, backToSearch, updateUserDb, projects, updateUse | |||
const [isActive, setIsActive] = useState(userToEdit.isActive); | |||
const [isAdmin, setIsAdmin] = useState(userToEdit.accessLevel === "admin"); | |||
|
|||
// Function to check if the current user is the super admin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semantics, but this comment says you provided a function but you've provided a boolean
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch trillium! I changed approach mid way but forgot to change the comment. Addressing it right away
I approved the pull request, but can you please change the word function to boolean in the comment you provided |
Merged! |
Fixes #1747
What changes did you make and why did you make them ?
Screenshots of Proposed Changes Of The Website (if any, please do not screen shot code changes)
Visuals before changes are applied
Visuals after changes are applied