Hey, I need to get a list of all contexts and their context settings without paying attation to the permissions of the current user.
I'm aware that I can use
$query = $this->modx->newQuery('modContext');
$this->modx->getCollectionGraph('modContext', '{"ContextSettings":{}}', $query);
to get all contexts and their settings, however getCollectionGraph respects the ACLs. So if I'm calling this in a snippet with a restricted user and a sudo user I'm getting different results.
I need to build a full list without paying attation to the ACLs. I know that this could work with a pure xpdo query, but I'm unable to get it working (after hours). Can anybody help?