I’m using this:
<?php
$getUserInfo = $modx->getUserInfo($_SESSION['mgrInternalKey']);
But which one is the Manager Group’s Permission ID?
Array
(
[username] => goldsky
[password] => f44406fc35e91458b31afe48de75cfca
[id] => 3
[internalKey] => 3
[fullname] =>
[role] => 2
[email] => [email protected]
[phone] =>
[mobilephone] =>
[blocked] => 0
[blockeduntil] => 0
[blockedafter] => 0
[logincount] => 1
[lastlogin] => 0
[thislogin] => 1286158631
[failedlogincount] => 0
[sessionid] => 6fncia4raih7peh8f5s5fbmup0
[dob] => 0
[gender] => 0
[country] =>
[state] =>
[zip] =>
[fax] =>
[photo] =>
[comment] =>
[usertype] => manager
)
Or should I manually LEFT JOIN on the `modx_membergroup_access` ?
But with which key?
My story is about making a restrictive access to Module’s pages, by using modx’s built-in Document Group Permissions as the hook.