Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

resource_request_visible()

Description

Can the logged in user see the request specified?

Parameters

ColumnTypeDefaultDescription
$request: array
$request array Array of request details

Return

bool *

Location

include/request_functions.php lines 1164 to 1177

Definition

 
function resource_request_visible(array $request): bool
{
    global 
$userref;
    
$show_this_request false;
    
# Show request if the user can accept requests (permission "Rb")
    
if (checkperm("Rb") && ($request["assigned_to"] == $userref)) {
        
$show_this_request true;
    }
    
# Show request if the user can assign requests (permission "Ra")
    
if (checkperm('Ra')) {
        
$show_this_request true;
    }
    return 
$show_this_request;
}

This article was last updated 11th February 2025 18:35 Europe/London time based on the source file dated 21st January 2025 15:20 Europe/London time.