why dont you just browse the "userroles" repository and add the new
permission to the ACL?
Or do you need to do this at runtime?
regards
rainer
Magnolia - User mailing list-2 wrote:
>
> Hi Magnolians,
>
> Could someone explain me how I can add a new "URL" permission to anonymous
> role?
> This is something I would like to perform on my new module installation.
>
> I have tried to force my chance with that:
> MgnlRoleManager mgnlRoleManager = new MgnlRoleManager();
> Role anonymous = mgnlRoleManager.getRole("anonymous");
> anonymous.addPermission("URL","/testUrl/*",PermissionImpl.READ);
>
> But no succes as expected because URL is not a repository !?
>
> Any suggestion?
>
> Thx a lot for your help
>
> Stéphane Gauthier
>
> ************************************************************************************
>
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error, please notify the system manager
> ([EMAIL PROTECTED]) and delete the message with any attached files
> from your system.
> The confidentiality and integrity of this message cannot be guaranteed on
> the Internet and the sender does not accept liability for its content.
> ***********************************************************************************
>
>
> ----------------------------------------------------------------
> for list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> ----------------------------------------------------------------
>
>
--
View this message in context:
http://www.nabble.com/Adding-permission-to-anonymous-role-tp20620657p20649868.html
Sent from the Magnolia - User mailing list archive at Nabble.com.
----------------------------------------------------------------
for list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
----------------------------------------------------------------