Environment:
MODX 2.2.8 standard
getResources 1.6.0-pl
In a nutshell, getResources is displaying resources in its output it shouldn't be displaying, based on assigned Resource Group permissions.
I have a group of resources devised for internal use only, that I want to display in a navigation area if the user is logged in and meets the appropriate access criteria. If the user is logged in, and is assigned to the correct user group ACL, then the resource links should appear. If the user is not logged in (i.e., "anonymous") the links should not appear.
I've done this exact same type of content output in the past with Wayfinder, and it worked perfectly.
However, I recently changed the content chunk for this navigation bar to use getResources instead of Wayfinder, and now "anonymous" users are seeing the links for the "Internal Only" resources, when before Wayfinder was correctly hiding them.
I have the resource group in question set up with the "Load Only" permission for anonymous users for the standard "web" context. If I'm understanding correctly, getResources should NOT display links to anonymous users for these resources. If I set the permission in the resource group to "Load and List," THEN getResources should display them, but NOT for "Load Only."
Is this correct? Because as far as I can tell, getResources is not correctly respecting the resource group assignment and permissions.
Again, when I was using Wayfinder to build this block of content, the links were correctly hidden until the user logged in. I generally prefer to use getResources, since its basic structural syntax and placeholder scheme is more intuitive for me, but I can easily change the content block back to Wayfinder, so that's not a big deal. It's just very, very odd to me that Wayfinder is doing this correctly, and getResources isn't.
Any ideas on why getResources is failing in this regard, when Wayfinder seems to work?
UPDATE: Confirmed that Wayfinder is working correctly, and getResources is not. As soon as I changed the content block to use the appropriate Wayfinder snippet call and TPLs, the "internal only" resources immediately became hidden like they were supposed to for anonymous users.
[ed. note: felonius last edited this post 12 years, 8 months ago.]