Deleting user now works, and forces you to allocate tasks from each user to another user before deleting them

This commit is contained in:
NPS Agent
2026-05-13 10:40:57 +09:30
parent ee5f55bc8e
commit fd84caef63
7 changed files with 24 additions and 5 deletions
+2 -2
View File
@@ -392,7 +392,7 @@ function App() {
await api.addAudit({ actor: meId, action: 'user_deleted', summary: 'Removed ' + (u?u.name:id), target: null });
} catch(e) {
console.error(e);
alert("Failed to delete user");
alert("Failed to delete user: " + e.message);
}
}}
onUpdateUserRole={async (id, edits) => {
@@ -401,7 +401,7 @@ function App() {
await api.addAudit({ actor: meId, action: 'user_updated', summary: 'Updated ' + (userMap[id]?userMap[id].name:id) + ' permissions', target: null });
} catch(e) {
console.error(e);
alert("Failed to update user");
alert("Failed to update user: " + e.message);
}
}}
onChangePassword={async (oldPwd, newPwd) => {