Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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;
    
ajax_send_response(401ajax_response_fail(ajax_build_message($lang['error-permissiondenied'])));
    }

This article was last updated 25th April 2024 21:05 Europe/London time based on the source file dated 18th August 2023 11:30 Europe/London time.