Hi,
I am working on a plugin that writes the sitestructure and some contents and TVs into an XML-File to serve a Flash site with content. This is working fine. But then i created a manager user for my Customer. This manager user does not have access to the Documents in the site root as they define the basic sitestructure - this documents belong to a documentgroup this user does not have access to (i want to prevent my customer from destroing the hole site by deleting for example the "portfolio"-folder - i call this folder in the plugin by its ID). The plugin is working fine as long as i am locked in as the standard admin user, but if i am locked in as this manager user the plugin can not access documents from other documentgroups. I use this call for example:
$folderID = 5; //my admin user does not have access to the documentgroup this document belongs to
$myVar = $modx->getDocumentChildren($folderID,1,0,$fields='id, pagetitle, content, menuindex',"","menuindex","asc");
Is there a way to execute the plugin with admin privileges or is there an other solution?
I hope someone can point me to the right direction.
Thanks in advance