Forums / Developer / Communication between extensions / Comment59212
Nicolas Pastorino
Thursday 20 May 2010 2:55:15 am
Hi Quentin,
From what i see i can understand you are not relying on eZ's built-in user management API. Hence your issue, probably. If i were you, and not knowing about all your development constraints, i'd stick to the normal user API, and retrieve the currently logged-in user as follows :
$currentUser = eZUser::currentUser();
This returns an eZUser object, with a bunch of useful information about the user, and the ability to check her access rights against what you are trying to achieve in your custom backend code.
Per your other question : "Is it possible to share data between extensions ?", i am not sure to properly understand. Would you mind giving a concrete example of what led you to this conclusion (and of what you would like to achieve) ?
Let us know,Cheers !
-- Nicolas Pastorino Director Community - eZ Member of the Community Project Board eZ Publish Community on twitter: http://twitter.com/ezcommunity t : http://twitter.com/jeanvoye G+ : http://plus.tl/jeanvoye