var sm = GlideSecurityManager.get(); var checkMe = 'record/' + root_rule + '/write'; answer = sm.hasRightsTo(checkMe, current);
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-21-2016 03:03 AM
Why we use this code in ACL.What did GlideSecurityManager.get() do?
and what did 'record/' + root_rule + '/write' value do?
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2017 02:48 AM
I think this ACL script is used to control that only field with write access is captured in template.
var sm = GlideSecurityManager.get();
var checkMe = 'record/' + root_rule + '/write';
answer = sm.hasRightsTo(checkMe, current);
I tried to change it to
var sm = GlideSecurityManager.get();
var checkMe = 'record/' + root_rule + '/read';
answer = sm.hasRightsTo(checkMe, current);
but this is not working..!
Help..!
Thanks