cancel
Showing results for 
Search instead for 
Did you mean: 

Show action depending on group

drocco88
Champ in-the-making
Champ in-the-making
Hi there,

I've manage to show the cancel checkout action on the UI on Explorer by simply adding:

<globalPermission permission="CancelCheckOut" authority="GROUP_CancelCheckOut"/>

to permissionDefinitions.xml.

I also I'm able to show it for the admin on Share using a simple evaluator (user.isAdmin() is available from the RequestContext).

Now I'm having trouble making it visible depending if the user belongs to a group (using an evaluator will require access to AuthorityService which is not available from share).

Any ideas how I can do this?

Much appreciated

R
1 REPLY 1

drocco88
Champ in-the-making
Champ in-the-making