Use consistent falsy check for group rank validation

This commit is contained in:
copilot-swe-agent[bot] 2026-07-02 02:39:57 +00:00 committed by GitHub
parent 67c2252f43
commit b53fb16398
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 = '*';