Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

metadata_field_view_access()

Description

Check if user has view access to metadata field

Parameters

ColumnTypeDefaultDescription
$field integer Field ref

Return

boolean

Location

include/resource_functions.php lines 8682 to 8687

Definition

 
function metadata_field_view_access($field)
    {
    return 
        (
PHP_SAPI == 'cli' && !defined("RS_TEST_MODE"))
        || ((
checkperm("f*") || checkperm("f" $field)) && !checkperm("f-" $field));
    }

This article was last updated 5th May 2024 18:05 Europe/London time based on the source file dated 3rd May 2024 14:45 Europe/London time.