From 1cbc75813c8a9eea1929a18181b0f4a2a07c142c Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 6 Feb 2020 13:21:57 -0500 Subject: [PATCH] improve the output of the ajaxError to say what the action was and who the user was --- web/ajax/event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/ajax/event.php b/web/ajax/event.php index cb4d3d7ad..9c2e57c2c 100644 --- a/web/ajax/event.php +++ b/web/ajax/event.php @@ -155,5 +155,5 @@ if ( canEdit('Events') ) { } // end switch action } // end if canEdit('Events') -ajaxError('Unrecognised action or insufficient permissions'); +ajaxError('Unrecognised action '.$_REQUEST['action'].' or insufficient permissions for user ' . $user['Username']); ?>