ftos.metadata.isAttributeRestricted

Checks if access to a record attribute is permitted within a specific security context. Attributes marked as isSecurable may have access controlled through security roles.

Syntax

Copy
ftos.metadata.isAttributeRestricted(record: any, attributeKey: string): boolean
 
Parameter Description
record JSON object that contains key - value pairs that represent a record's attributes.
HINT  
Typical examples include records from fetch result sets, such as those returned by ftos.data.getById, ftos.data.getByQuery, or ftos.data.getByQueryAndCache.
attributeKey Name of the property within the record that matches the attribute you wish to check (the name of the attribute).

Result

Returns a boolean:

Examples