- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2024 11:00 AM - edited ‎05-02-2024 11:02 AM
I granted a read permission on a certain field only to certain admin users and denied it to everyone else. The field can't be accessed by them, however when I use javascript in field style to set a decoration on a field, everyone can see the style. Is this because it's running the javascript server side and not checking user's permissions? How to resolve?
javascript:current.u_breach_stage==1
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2024 11:20 AM - edited ‎05-02-2024 11:23 AM
@LearnUseThrive Could you please try the following and see if it works.
javascript: current.<field_name>.canRead()&¤t.u_breach_stage==1
//Here replace <field_name> with the name of the field where the read permission needs to be checked.
In the above script replace <field_name> with the name of the field where the read permission needs to be checked.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2024 11:20 AM - edited ‎05-02-2024 11:23 AM
@LearnUseThrive Could you please try the following and see if it works.
javascript: current.<field_name>.canRead()&¤t.u_breach_stage==1
//Here replace <field_name> with the name of the field where the read permission needs to be checked.
In the above script replace <field_name> with the name of the field where the read permission needs to be checked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2024 11:21 AM
It worked. Thanks!