Collections functions
Encryption functions
General functions
Theme permission 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 7700 to 7709

Definition

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

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

This article was last updated 11th July 2020 20:35 Europe/London time based on the source file dated 10th July 2020 16:06 Europe/London time.