Forums

Filter by user

francescocartei 31 Aug, 2016
Hi,
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 31 Aug, 2016
Hi armandocurcio,

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

Bob
This topic is locked and no more replies can be posted.