Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource 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 5486 to 5494

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") || in_array($usergroup,$upload_link_usergroups));
    }

This article was last updated 15th May 2021 00:35 Europe/London time based on the source file dated 10th May 2021 09:15 Europe/London time.