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 8109 to 8118

Definition

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

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

This article was last updated 23rd November 2020 15:35 Europe/London time based on the source file dated 13th November 2020 16:50 Europe/London time.