Hi,

Yes, you need the system context. Off the top of my head something like 
MgnlContext.doInSystemContext(new VoidOp(){ ... });

Regards from Vienna,

Richard

________________________________________
Von: [email protected] [[email protected]]" 
im Auftrag von "Péter Balázs (via Magnolia Forums) [[email protected]]
Gesendet: Freitag, 29. März 2013 11:24
An: Magnolia User List
Betreff: [magnolia-user]  Re: Cannot add user to group / cannot add role to user

Fixed this (although it's more like a hack):

I needed to overwrite the add() method from the RepositoryBackedSecurityManager 
class and run the findPrincipalNode() method in the system context.

--
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=6c1bee79-e4bc-481e-a4af-d2065944176c


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------





----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to