Buy Now
Sign in

Filter by user

francescocartei , August 31 2016, 13:58
francescocartei 32
August 31 2016, 13:58 #361525
in ChronoConnectivity V5 I want to filter the records by user. I want that when Mr. Red sign in, he only see the records that he has created and does not see the records of Mr. Green.
GreyHead 65
August 31 2016, 14:01 #361527
Hi armandocurcio,

You can add that in the conditions box something like this
$juser = \JFactory::getUser();
return array ('user_id' => $juser->id);
but replace user_id with the user ID column name form your table.

If you'd like to buy me a coffee or two, thank you very much