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

can_share_upload_link()

Description

Check if user is permitted to create an external upload link for the given collection

Parameters

ColumnTypeDefaultDescription
$collection_data array Array of collection data

Return

boolean

Location

include/collections_functions.php lines 6427 to 6435

Definition

 
function can_share_upload_link($collection_data)
    {
    global 
$usergroup,$upload_link_usergroups;
    if(!
is_array($collection_data) && is_numeric($collection_data))
        {
        
$collection_data get_collection($collection_data);
        }
    return 
allow_upload_to_collection($collection_data) && (checkperm('a') || checkperm("exup"));
    }

This article was last updated 17th November 2024 15:35 Europe/London time based on the source file dated 13th November 2024 15:50 Europe/London time.