Collections functions
General functions
Render 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 8126 to 8135

Definition

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

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

This article was last updated 3rd October 2022 11:35 Europe/London time based on the source file dated 30th September 2022 14:20 Europe/London time.