Skip to content

Commit

Permalink
Hide the ban button if the user status is Banned (#2940)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheshiriks authored Mar 12, 2024
1 parent e5b77d6 commit 6794eea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ fun ChildrenBuilder.renderLeftUserMenu(
}
}

if (currentUser?.isSuperAdmin() == true && currentUser.name != user?.name) {
if (currentUser?.isSuperAdmin() == true && currentUser.name != user?.name && user?.status != UserStatus.BANNED) {
div {
className = ClassName("row h5 font-weight-bold justify-content-center text-gray-800 my-3")

Expand Down

0 comments on commit 6794eea

Please sign in to comment.