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 8289 to 8298

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 May 2021 10:35 Europe/London time based on the source file dated 11th May 2021 10:25 Europe/London time.