From b53fb163981063390025a1f606df0c504efc0bd2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 2 Jul 2026 02:39:57 +0000 Subject: [PATCH] Use consistent falsy check for group rank validation --- public/js/dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/dashboard.js b/public/js/dashboard.js index ca81190..e7d6003 100644 --- a/public/js/dashboard.js +++ b/public/js/dashboard.js @@ -318,7 +318,7 @@ document.getElementById('add-acl-form').addEventListener('submit', async (e) => } else if (type === 2 || type === 3) { const groupId = document.getElementById('acl-group-id').value.trim(); const rank = document.getElementById('acl-group-rank').value.trim(); - if (!groupId || rank === '') return; + if (!groupId || !rank) return; data = `${groupId}:${rank}`; } else if (type === 4) { data = '*';