Skip to end of banner
Go to start of banner

admShareFilter

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Description

Shares a filter. Share types may be 'project', 'projectRole', 'user', 'group', 'loggedin', 'global'.
The value of the share must reflect either the user id, group id or project key, or an array, pipe separated, of project key and role id.
.

Parameters

Return Type

boolean

Example

JFilter f = admGetFilterByName(name)[0];
    JSharePermission perm;
    perm.type="project";
    perm.object="TEST";
    
    admShareFilter(f.id, 1, perm);
    
    perm.type="group";
    perm.object="site-admins";
    admShareFilter(f.id, 1, perm);

Shares the filter with the project and the group

See also

  • No labels