Source request button only visible for admin/procurement_user roles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2024 04:33 AM
Hi,
I am trying to make the 'source request' button on a catalogue task visible for anyone with a role I have just created, called u_tialis_asset. The condition that specifies whether the ui action 'source request' is visible on the catalogue task is this:
new DT_ProcurementUtils().refQualForSourceRequestForIE(current);
The script include that it is pulling the condition from is this:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2024 12:49 PM
Hi @LyndseySharpe,
Can you check the Read ACL's written on the table and the access that it provides. This can be the reason, as they have used canRead function.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2024 04:44 AM
Hi,
Thanks for this, I've already checked the access controls though and they are fine. As stated above, the line of code causing the issue is this:
&& (gs.getSession().getProperty('user_agent_browser') == 'ie'&& gs.getSession().getProperty('user_agent_version') < 10)
I have already commented out the canread() line of code and that doesn't change the conditions of the button.
Thanks,
Lyndsey