Cprime Apps has been rebranded as Anova Apps. Please note the only effect is the company name - all of our products’ names, logos, functionalities, support, etc. is exactly the same. The new location to our documentation space is https://anovaapps.atlassian.net.
This routine is available starting with SIL Engine 22.214.171.124.
admShareFilter(filterId, shareType, [ shareRight [, shareName [,roleName ]]])
Add shares to a filter based on project, role, group, user.Add shares to a filter based on project, role, group, user. For each call of this routine a new set of shares will be added on top of the existing ones.
The filter id.
The share type.
The share type can be: "project", "group", "user", "global", "loggedin".
The share right.
The share right can be: "view", "edit".
The share name is dependent of the share type. It represents the actual name of the project, user or group for sharing the filter.
For the project shareType the shareName is the actual key of the project.
For the group shareType the shareName is the group name.
For the user shareType the shareName is the user name.
|roleName||string||No||The role name is an extra parameter when sharing the filter on a project that will further restrict based on role as well.|
Returns true if the operation succeeded.