security.applicationAddTagElementSecurity deprecated
Add element security for a tag in an application.
Deprecated
Use app.tags.get(tag).set(element, access) instead.
js
security.applicationAddTagElementSecurity(applicationId, tag, element, access)Parameters
| Parameter | Type | Description |
|---|---|---|
applicationId | string | The application id. |
tag | string | The tag id or name. |
element | string | Name of the element. |
access | string | Name of the access. |
Returns
booleantrue if the access was added; false if the application or tag was not found.
Examples
js
const added = security.applicationAddTagElementSecurity("MyActivityId", "Admin", "Revenue", "read");