You can access the repository as superuser:
HierarchyManager hm =
MgnlContext.getSystemContext().getHierarchyManager("website");
// and then do something with hm
Does this help?
-will
On 12.03.2009, at 17:06, Matteo Pelucco wrote:
Hi all,
is it possible to force an action / command be executed as superuser?
Something like:
// user swap
User loggedUser = MgnlContext.getUser();
MgnlContext.login(Security.getSystemUser());
[... superuser actions ...]
// user swap
MgnlContext.login(loggedUser);
?
Thanks..
Matteo
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------