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_view_collection_log()

Description

Determines whether the current user has permission to view the collection log.

Parameters

ColumnTypeDefaultDescription
$collection_data: array
$k
$sql_where_parent->parameters
the in
['i'
c.`name`
c.`type`
c.parent
c.order_by
cr.resource countDISTINCT
array_merge['i'
COLLECTION_TYPE_FEATURED]
$collection_data array Array of collection data, typically from get_collection()

Return

bool Returns true if the collection log can be viewed by the current user.

Location

include/collections_functions.php lines 6546 to 6550

Definition

 
function can_view_collection_log(array $collection_data): bool
{
    global 
$userref$k$internal_share_access;
    return (
$k == "" || $internal_share_access) && ($userref == $collection_data['user'] || checkperm('h'));
}

This article was last updated 3rd February 2026 20:35 Europe/London time based on the source file dated 3rd February 2026 14:00 Europe/London time.