Collections functions
General functions
Render functions
Theme permission functions
Resource functions

ajax_unauthorized()

Description

Returns a standard AJAX response for unauthorised access with a 401 HTTP status code

Parameters

This function accepts no parameters.

Return

void

Location

include/ajax_functions.php lines 120 to 124

Definition

 
function ajax_unauthorized()
    {
    global 
$lang;
    return 
ajax_send_response(401ajax_response_fail(ajax_build_message($lang['error-permissiondenied'])));
    }

This article was last updated 5th October 2022 02:05 Europe/London time based on the source file dated 30th June 2022 11:10 Europe/London time.