This repository was archived by the owner on Jul 28, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -908,15 +908,24 @@ async function renderAdminUserDetail(userId) {
908908 ` : '<p style="color:var(--text-secondary)">No servers.</p>' }
909909 </div>
910910
911+ <div class="card" style="margin-bottom:24px">
912+ <h2 class="card-title" style="margin-bottom:16px;color:var(--accent-orange)">Restrictions</h2>
913+ <p style="color:var(--text-secondary);font-size:0.88rem;margin-bottom:12px">
914+ Restrict user features or authentication access.
915+ </p>
916+ <div style="display:flex;gap:8px;flex-wrap:wrap">
917+ <button class="btn ${ u . restricted ? 'btn-primary' : 'btn-warning' } " id="admin-btn-toggle-restriction" style="width:auto">${ u . restricted ? 'Unrestrict User' : 'Restrict User' } </button>
918+ <button class="btn ${ u . auth_restricted ? 'btn-primary' : 'btn-warning' } " id="admin-btn-toggle-auth-restriction" style="width:auto">${ u . auth_restricted ? 'Unrestrict Auth' : 'Restrict Auth' } </button>
919+ </div>
920+ </div>
921+
911922 <div class="card">
912923 <h2 class="card-title" style="margin-bottom:16px;color:var(--accent-red)">Danger Zone</h2>
913924 <p style="color:var(--text-secondary);font-size:0.88rem;margin-bottom:12px">
914- Toggle admin privileges, restrict account, or delete this user.
925+ Toggle admin privileges or delete this user.
915926 </p>
916927 <div style="display:flex;gap:8px;flex-wrap:wrap">
917928 <button class="btn ${ u . is_admin ? 'btn-warning' : 'btn-primary' } " id="admin-btn-toggle-admin" style="width:auto">${ u . is_admin ? 'Remove Admin' : 'Make Admin' } </button>
918- <button class="btn ${ u . restricted ? 'btn-primary' : 'btn-warning' } " id="admin-btn-toggle-restriction" style="width:auto">${ u . restricted ? 'Unrestrict User' : 'Restrict User' } </button>
919- <button class="btn ${ u . auth_restricted ? 'btn-primary' : 'btn-warning' } " id="admin-btn-toggle-auth-restriction" style="width:auto">${ u . auth_restricted ? 'Unrestrict Auth' : 'Restrict Auth' } </button>
920929 <button class="btn btn-danger" id="admin-btn-delete-user" style="width:auto">Delete User</button>
921930 </div>
922931 <div id="admin-user-action-msg" style="margin-top:12px;display:none"></div>
You can’t perform that action at this time.
0 commit comments