Forums / Developer / Permissions within scripts under /bin/php and cronjobs...
Norman Leutner
Tuesday 12 September 2006 3:57:31 am
Hi, I'm currently working on a php script which creates objects depending on user attributes.Therefore a need to fetch a list of users within a given group.
Usually I use
$nodes =& eZContentObjectTreeNode::subTree( false, $subtreeNodeID );
to get the subtree of a secific node.
But the function does not return any result when using within this script.The script is using anonymous access rights.
Has someone a hint for me how to change the access rights for the script?
Thanks in advance
Mit freundlichen Grüßen Best regards Norman Leutner ____________________________________________________________ eZ Publish Platinum Partner - http://www.all2e.com http://ez.no/partners/worldwide_partners/all2e_gmbh
Claudia Kosny
Tuesday 12 September 2006 4:15:04 am
Hello Norman
You might try to log in as a user who has the correct permissions with
eZUser::loginUser( $login, $password );
(I have never tried this, just found it earlier on in another post)
Alternatively you could also provide the parameter limitation with an empty array as value - then you should get all nodes no matter what the access rights are.
Greetings from Luxembourg
Claudia
Tuesday 12 September 2006 4:57:18 am
Thanks for you hint Claudia,
the function works fine...