Collections functions
Encryption functions
General functions
Theme permission 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 7843 to 7848

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 12th July 2020 00:05 Europe/London time based on the source file dated 10th July 2020 16:06 Europe/London time.