- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2023 08:08 AM
I have a requirement to enable non-admin users to work with update sets. This blog solved most of that but clicking the export to XML UI action throws a permissions error.
I've been unable to work out just what I need to update to allow them to do that, any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2023 01:05 AM
Answering my own question, it's hard coded to the admin role in the ExportUpdateSet processor. If you want to do this then the line below needs modifying to account for your non-admin role(s).
if (!gs.hasRole('admin') && !sn_app_api.AppStoreAPI.canPublishToUpdateSet(remoteUpdateGR.application)) {
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2023 01:05 AM
Answering my own question, it's hard coded to the admin role in the ExportUpdateSet processor. If you want to do this then the line below needs modifying to account for your non-admin role(s).
if (!gs.hasRole('admin') && !sn_app_api.AppStoreAPI.canPublishToUpdateSet(remoteUpdateGR.application)) {