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

Kalaiarasan Pus
Giga Sage

What do you want with that ?


Hi kalaiarasan This condition returns false and when i create new kb is become read only .makes all field read only.


var sm = GlideSecurityManager.get();


var checkMe = 'record/' + root_rule + '/write';


answer = sm.hasRightsTo(checkMe, current);


this return false


Hi Karun,



The specific code is from the wild card ACL? (*.*) ??



Then you might need to create   an ACL specific to table that you are working on to override the behavior.



Thanks


Srinivas


Hi Srinivas,



Could you please explain what does 'root_rule' points to?


Where I can find its definition?