Hello to everyone,
I am currently building a cmp following the doodles tutorial.
I was developing my application in modx. That is to say, I was putting my core files into
/modx/core/components/myapp/ and the assets in
/modx/assets/components/myapp/.
Following this structure my cmp was working fine. However, I have decided to follow the tutorial's way of developing outside of modx.
So, I have moved all my files in a directory at the root of my local server and created the
magic settings.
And here is where the problem began. The cmp widgets load but the grid comes up empty. Using FirePHP, I have narrowed down the problem to the following check performed in the
/modx/connectors/index.php file:
if (!$modx->context->checkPolicy('load'))
The above line validates to true and then, the session ends.
I have made some research about the "checkPolicy" method and, as far as I can tell, it returns false if the user in question does not have the permission to perform the action at hand.
But, I log in as Administrator and this code used to work when it was located under the
/modx/ directory.
Can anyone explain to me why this happens?
Thank you very much!