Skip to content

fix: Suspended users cannot authenticate #1849

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

Merged
merged 18 commits into from
May 31, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Linting fixes
  • Loading branch information
Emyrk committed May 27, 2022
commit c5f33a507fab52a0b51a36c8debbfa0b7e1ad70c
25 changes: 13 additions & 12 deletions site/src/components/UsersTable/UsersTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,20 +84,21 @@ export const UsersTable: React.FC<UsersTableProps> = ({
data={u}
menuItems={
// Return either suspend or activate depending on status
(u.status == "active"
(u.status === "active"
? [
{
label: Language.suspendMenuItem,
onClick: onSuspendUser,
},
]
{
label: Language.suspendMenuItem,
onClick: onSuspendUser,
},
]
: [
{
label: Language.activateMenuItem,
// TODO: Activate user
onClick: function () {},
},
]
{
label: Language.activateMenuItem,
// TODO: Activate user
// eslint-disable-next-line @typescript-eslint/no-empty-function
onClick: function () {},
},
]
).concat({
label: Language.resetPasswordMenuItem,
onClick: onResetUserPassword,
Expand Down