
The documentation shows an access permissions tab, which must be in an older MODx version because Revo 2.2-pl shows no access permissions tab for the document, and only Resource Groups, and no Resource Groups were checked though one was created according to the documentation.
Login documentation may need updating??
Thank you, Tom
Looks like it was renamed from Access Permissions to Resource Groups in 2.2, that's the one you need. I updated the docs to note the new name.
Weird thing is it works perfectly in one localhost server (don't need and not in the one I'm presently testing, same code, only different Resource IDs.
I now know there exists an isLoggedIn snippet but now to find where/how to use it, it's not in the docs.
[[!+modx.user.id:gte=`1`:then=` Welcome [[!+modx.user.id:userinfo=`fullname`]] `:else=``]]
$modx->sendRedirect($modx->makeUrl( 38 ));
$modx->sendUnauthorizedPage()
I find this information from Bob's Guides: In a snippet, the API function $modx->userLoggedIn() returns true if the user is logged in, now to figure out how to use it??
if ($modx->userLoggedIn()) {
//do something
} else {
// not logged in do somethign else
}Quote from: markh at Jan 22, 2012, 02:01 PM
Looks like it was renamed from Access Permissions to Resource Groups in 2.2, that's the one you need. I updated the docs to note the new name.
So it should be checked or not checked????