- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2021 03:58 AM
Hello Community,
I've got a script include which is called from a client ui script. Which is called in a catalog item. All put into a scoped application.
The problem is that this only works when the current user has the role admin or snc_internal. Which in my case is too much privileges for the users it is destined for. The server include script is set to be accessible from all application scopes.
My question is if there are fine-grained roles which can be used instead ?
Thx !
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2021 12:57 AM
It works, but I had to get the roles from somewhere else.
isPublic: function(){
return gs.getUser().roles.indexOf('role name') > -1;
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2021 03:06 AM
Glad it worked.
Did you accidently mark your answer as correct ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2021 04:32 AM
To enable external users to allow access to script include, please add a Client-callable script include ACL rule.
Type: client_callable_script_include
Add <Name of the Script Include to provide access> in Name,
Role: snc_external
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2024 09:14 AM
Can you tell the steps and the permission required, if I want the ScripInclude to be available for all users in Scoped Application.