var sm = GlideSecurityManager.get(); var checkMe = 'record/' + root_rule + '/write'; answer = sm.hasRightsTo(checkMe, current);

Karun Pandey
Tera Contributor

Why we use this code in ACL.What did GlideSecurityManager.get() do?

and what did 'record/' + root_rule + '/write' value do?

5 REPLIES 5

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