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 Array of request details

Return

bool *

Location

include/request_functions.php lines 1267 to 1282

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 17th November 2024 15:35 Europe/London time based on the source file dated 27th September 2024 12:30 Europe/London time.