Hey Everyone!
i've run into a problem using getResources to print out Teasers (using the introtext-field) of a list of resources. Some of the resources are in a usergroup exclusive to registered users. So getResources won't list them, of course. Is there a way to change that behavior?
The reason is that I want every user to be able to read the teasers but only registered users should be able to access the full article.
I browsed the getResources-Code but didn't find any hint to where it checks the permissions on the actual resource.
Thanks for your help!
Cheers,
Sean
-
MODX Staff
- 10,725 Posts
Permissions are built in to the core of the application. If the user cannot access a Resource, it will not be loaded and they will not see it. If you provide anonymous users with load and list permissions on the Resource Group the Resources are in, it should work for you while preventing them from being able to view the full Resource.