Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

canSeePreviewTools()

Description

Helper function for Preview tools feature. Checks all necessary permissions or options
in order to tell the system whether PreviewTools panel should be displayed

Parameters

ColumnTypeDefaultDescription
$edit_access boolean Does user have the permissions to edit this resource

Return

boolean

Location

include/resource_functions.php lines 8240 to 8249

Definition

 
function canSeePreviewTools($edit_access)
    {
    global 
$annotate_enabled$image_preview_zoom;

    return
        (
           (
$annotate_enabled && $edit_access)
        || 
$image_preview_zoom
        
);
    }

This article was last updated 24th February 2021 22:35 Europe/London time based on the source file dated 24th February 2021 17:45 Europe/London time.