Deleting user now works, and forces you to allocate tasks from each user to another user before deleting them
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user