Skip to content

Commit 6794eea

Browse files
authored
Hide the ban button if the user status is Banned (#2940)
1 parent e5b77d6 commit 6794eea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/userprofile

frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/userprofile/UserProfileView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ fun ChildrenBuilder.renderLeftUserMenu(
305305
}
306306
}
307307

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

0 commit comments

Comments
 (0)