Skip to content

Commit

Permalink
Merge pull request #1824 from ResearchHub/reinstate
Browse files Browse the repository at this point in the history
reinstate user functionality on probable spammer accounts
  • Loading branch information
yattias authored Sep 5, 2024
2 parents 6834682 + 1c6d5a4 commit ef7b973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/Author/Profile/AuthorProfileHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const AuthorProfileHeader = () => {
),
value: "ban",
}] : []),
...((currentUser?.moderator && profile.user?.isSuspended) ? [{
...((currentUser?.moderator && (profile.user?.isSuspended || profile.user?.isProbableSpammer)) ? [{
html: (
<ModeratorDeleteButton
actionType="user"
Expand All @@ -92,7 +92,7 @@ const AuthorProfileHeader = () => {
label={"Reinstate User"}
metaData={{
authorId: profile.id as string,
isSuspended: profile.user?.isSuspended,
isSuspended: true,
}}
/>),
value: "reinstate",
Expand Down

0 comments on commit ef7b973

Please sign in to comment.