I need to control access to some plugin actions we've created, so that only members of a specific LDAP group (or Process Role if that's possible) can click a button.
I can see there is a method on the JS repository object getUserId(), but nothing that returns a User object for the currently logged in User.
The User object would at least provide the roles that the user is a member of.
Can anyone suggest the best way of doing this, with maybe some snippets of code?
I've looked through the Samples, and ICN JS API, but nothing immediately obvious pops out.