From 6794eeadbaa8b6b422b4a1101e1de88d2b57a9b7 Mon Sep 17 00:00:00 2001 From: Vladislav Frolov <50615459+Cheshiriks@users.noreply.github.com> Date: Tue, 12 Mar 2024 15:42:34 +0300 Subject: [PATCH] Hide the ban button if the user status is Banned (#2940) --- .../common/components/views/userprofile/UserProfileView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/userprofile/UserProfileView.kt b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/userprofile/UserProfileView.kt index 17a9fae41e..5dcbfe7387 100644 --- a/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/userprofile/UserProfileView.kt +++ b/frontend-common/src/main/kotlin/com/saveourtool/frontend/common/components/views/userprofile/UserProfileView.kt @@ -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")