Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video 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 8252 to 8257

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 23rd November 2020 15:35 Europe/London time based on the source file dated 13th November 2020 16:50 Europe/London time.