Fix client delete function

This commit is contained in:
Marcus Hill
2023-09-30 15:33:48 +01:00
parent e5e549482c
commit c3dd9a80b6
3 changed files with 27 additions and 8 deletions

View File

@@ -176,12 +176,10 @@ if (isset($_GET['undo_archive_client'])) {
if (isset($_GET['delete_client'])) {
// Removing this function from the frontend as this is extremely destructive. Its best to use Archive, use this for development or test purposes only.
validateAdminRole();
// CSRF Check
// validateCSRFToken($_GET['csrf_token']);
validateCSRFToken($_GET['csrf_token']);
$client_id = intval($_GET['delete_client']);