No value for "current.sys_id" in ACL script?

andersfigenscho
Kilo Expert
Kilo Expert

Hello,

I am working in the ACL script for the task table, and I am trying to retrieve the sys_id for that open task form.  

My understanding is that I could use current.sys_id to find this value, but for some reason I am getting no value from this.

gs.print(current.sys_id) shows "". (empty value).

Any idea why?

Thanks for any suggestion.

- Anders Figenschow

Symfoni

1 ACCEPTED SOLUTION

Hej Anders,


If two or more rules match at the same point in the processing order, the user must pass any one of the ACL rules permissions to access the object. For example, if you create two field ACL rules for incident.number, then a user who passes one rule has access to the number field regardless of whether the user failed any other field ACL rule at the same point in the processing order.




Please enable "debug security rules" and verify which ACLs that are running




View solution in original post

11 REPLIES 11

Hej Anders,


If two or more rules match at the same point in the processing order, the user must pass any one of the ACL rules permissions to access the object. For example, if you create two field ACL rules for incident.number, then a user who passes one rule has access to the number field regardless of whether the user failed any other field ACL rule at the same point in the processing order.




Please enable "debug security rules" and verify which ACLs that are running




It was indeed another ACL with very quick approval, in incidents, which caused my task script to never pass.


So I guess I have learned that even if an ACL does not run, because of a running order approval, parts of the debug printouts will go through still.   A bit confusing, it would be easier to understand it if nothing in the script area was processed.  


🙂