ACL script help
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2024 09:51 AM
Hello Team
I'm trying to write an acl script for impersonate the user on the catalog form. The script works, I'm able to pick the drop down menu for the person that I impersonated on the form. However, when I select technology and click on the drop down menu, there are no courses listed. I'm not sure how to make it appears. This is all within the form. Thanks for your help.
//---------------------------------------------------
logged_user = gs.getUserID();
var currentStudent = new GlideRecord('sys_user');
currentStudent.addQuery('sys_id', logged_user);
currentStudent.query();
if (currentStudent.next()) {
if (currentStudent.email == current.email) {
answer = true;
} else {
answer = false;
}
} else {
answer = false;
}
0 REPLIES 0