Before 1.7 you need to use context.addproxyprivilege. After 1.7 you don't
need anything, the activator runs as the daemon user with all privileges.

Ben
On Oct 11, 2011 1:11 AM, "Juan David" <[email protected]> wrote:

> Hi,
>
> I saw https://wiki.openmrs.org/display/docs/Module+Privileges+and+Roles?
> focusedCommentId=27689701&#comment-27689701
>
> I am tryin got add them from Activator,startup() with:
>
>    Context.getUserService().saveRole(new Role("name","description")).
>
> But it fails because I need an authenticated user.
>
> Thanks in advance.
>
> _________________________________________
>
> To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to
> [email protected] with "SIGNOFF openmrs-devel-l" in the  body
> (not the subject) of your e-mail.
>
> [mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]
>

_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to 
[email protected] with "SIGNOFF openmrs-devel-l" in the  body (not 
the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

Reply via email to