Answer the question
In order to leave comments, you need to log in
How to find out in modx whether the user group (user) has access to the resource (by id)?
Good afternoon, how to check access to a resource by id?
(I use the Login plugin)
In resources, it is usually set which user groups have access to it, and if they do not have them, it throws a 404.
Answer the question
In order to leave comments, you need to log in
It would be more flexible and easier, as for me, to write a snippet that receives the resource ID parameter as input and checks whether the current user is allowed access to such a resource.
You can read about the snippet code on the MODX forum for example.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question