Hello, I need to assign and revoke Ivy Role dynamically on the session user. If I understand the API documentation well, the following method assigns the given role to the session, the role should be automatically unassigned after logout: Ivy.session().assignRole(role); Here the API documentation: @PublicAPI(value=EXPERT) Assigns a role to the session. Parameters:role The role to assign The problem is that I need also to revoke an Ivy Role dynamically, I could not find a method like Ivy.session().revokeRole(IRole role) or Ivy.session().unassignRole(Irole role). Is there a possibility to do that? Thanks a lot in advance. Emmanuel asked 31.03.2016 at 10:26 Emmanuel |
You can set the assigned role back to it's default value (and behaviour) by assigning the top level role called "everybody".
Alternatively you can manage the roles on the session user as roland described:
answered 01.04.2016 at 13:44 Reguel Werme... ♦♦ |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 31.03.2016 at 10:26
Seen: 2,471 times
Last updated: 01.04.2016 at 13:44