huge update.
fix issues with failing tests (I'm just gonna fucking assume directx isn't installed on the github actions machines). Added MUCH better RBAC support and control Fixed an issue when you have over a million clients RBAC would be slow asf Add settings page with some basic settings and configs you can change.
This commit is contained in:
@@ -183,6 +183,16 @@ function renderUsers() {
|
||||
>
|
||||
<i class="fa-solid fa-user-tag"></i>
|
||||
</button>
|
||||
<button
|
||||
class="user-action-btn px-3 py-1.5 text-sm bg-indigo-900/30 hover:bg-indigo-900/50 text-indigo-300 rounded border border-indigo-800 transition-colors"
|
||||
data-action="client-access"
|
||||
data-user-id="${user.id}"
|
||||
data-username="${escapeHtml(user.username)}"
|
||||
data-role="${escapeHtml(user.role)}"
|
||||
title="Client Visibility"
|
||||
>
|
||||
<i class="fa-solid fa-user-shield"></i>
|
||||
</button>
|
||||
<button
|
||||
class="user-action-btn px-3 py-1.5 text-sm bg-red-900/20 hover:bg-red-900/40 text-red-400 rounded border border-red-800 transition-colors"
|
||||
data-action="delete"
|
||||
@@ -242,6 +252,9 @@ function attachActionListeners() {
|
||||
case "delete":
|
||||
deleteUser(userId, username);
|
||||
break;
|
||||
case "client-access":
|
||||
configureClientAccess(userId, username, role);
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -411,5 +424,10 @@ window.deleteUser = async function (userId, username) {
|
||||
}
|
||||
};
|
||||
|
||||
window.configureClientAccess = async function (userId, username, role) {
|
||||
const params = new URLSearchParams({ userId: String(userId) });
|
||||
window.location.href = `/user-client-access?${params.toString()}`;
|
||||
};
|
||||
|
||||
getCurrentUser();
|
||||
loadUsers();
|
||||
|
||||
Reference in New Issue
Block a user