diff --git a/public/src/forum/admin/users.js b/public/src/forum/admin/users.js index eb06cfc50a..4f9ba9dc88 100644 --- a/public/src/forum/admin/users.js +++ b/public/src/forum/admin/users.js @@ -20,8 +20,8 @@ function updateUserButtons() { jQuery('.ban-btn').each(function(index, element) { var banBtn = $(element); - - if (isUserAdmin(banBtn)) + var uid = getUID(banBtn); + if (isUserAdmin(banBtn) || uid === yourid) banBtn.addClass('disabled'); else if (isUserBanned(banBtn)) banBtn.addClass('btn-warning');