mirror of
https://github.com/itflow-org/itflow
synced 2026-11-21 03:47:25 +00:00
Calendar: every agent has a color picked in Account Preferences or Admin Users, and their booked tickets and assigned events are drawn in it with their first name beside the time; events are assigned to agents from New Event, Edit and the quick look, with contacts and anyone else under Invite; Left behind under the calendar lists open tickets booked on a day that has gone, to drag back on; a 7 days view moves a day at a time and bookings at the same time sit side by side; Holidays shows the SLA closure days; what the calendar shows is kept to the account, and To schedule with Everyone lists everyone's unbooked tickets; database 3.8.4 adds user_settings.user_config_calendar_color and user_config_calendar_state; 26.11.9 changelog entries
This commit is contained in:
@@ -205,6 +205,7 @@ if (isset($_POST['edit_user'])) {
|
||||
mysqli_query($mysqli, "UPDATE users SET user_name = '" . escapeSql($name) . "', user_email = '" . escapeSql($email) . "', user_role_id = " . intval($role['role_id']) . " WHERE user_id = $user_id");
|
||||
$force_mfa = !empty($_POST['force_mfa']) ? 1 : 0;
|
||||
mysqli_query($mysqli, "INSERT INTO user_settings SET user_id = $user_id, user_config_force_mfa = $force_mfa ON DUPLICATE KEY UPDATE user_config_force_mfa = $force_mfa");
|
||||
calendarAgentColorSave($user_id, $_POST);
|
||||
|
||||
// An admin sees every client - their rules are left as they were, in case the role changes back
|
||||
if (!intval($role['role_is_admin']) && isset($_POST['client_permission_shown'])) {
|
||||
|
||||
Reference in New Issue
Block a user