On 8/6/2013 23:54, Denis Gervalle wrote:
Sure, just be careful that the XWikiCachingRightService is a temporary
bridge that will be progressively deprecated in favor of the
AuthorizationManager and an upcoming "ContextualAuthorizationManager".
Moreover, the mapping between action and right will be moved to the Action
module, once available.
By the way, you may provide your new right without patching anything by
calling AuthorizationManager#register, and you can change
XWikiCachingRightService from xwiki.cfg
using xwiki.authentication.rightsclass=...
Ha great, thanks for the tip !
I have to patch Right unfortunately since I want both Admin and Program
Right to inherit my AdvEdit right (impliedRight). Might be interesting
to have some kind of inversion of control when one right can push itself
as implied right to others.