Open BBloke opened 3 years ago
Hi,
With the new change to single table users and assigned TVs via Role in v3.0+.
Is there a function which will pull the associated TV's for a user id?
We currently have:
$user = $modx->getWebUserInfo($modx->getLoginUserID()); $this->username = $user['username'];
Which pulls the user info. It would be nice if the same function pulled the TV's for the Users Role in too or a new function which just pulls the User's TVs.
Thanks, BBloke
\UserManager::getValues(['id' => $user_id]);
not documented yet
That is awesome. Thanks @mnoskov
Hi,
With the new change to single table users and assigned TVs via Role in v3.0+.
Is there a function which will pull the associated TV's for a user id?
We currently have:
$user = $modx->getWebUserInfo($modx->getLoginUserID()); $this->username = $user['username'];
Which pulls the user info. It would be nice if the same function pulled the TV's for the Users Role in too or a new function which just pulls the User's TVs.
Thanks, BBloke