koze85
Member
hi
I have a list and I want to show the edit button only to the user that had created the record
SO in the list plugins I added the caneditrow and I added an advanced php eval
$user = JFactory::getUser();
if ('{linklist___usr}' == $user->username) {
return true;
}else{
return false;
}
While everything is working correctly as it should (Users can see only the edit button for the records they have created) I always get an error msg
An error has occurred with a eval'd field - please inform the web-site owner.
Debug: Caught exception on eval in can edit row : syntax error, unexpected BOOL_TRUE in Unknown on line 17
I have a list and I want to show the edit button only to the user that had created the record
SO in the list plugins I added the caneditrow and I added an advanced php eval
$user = JFactory::getUser();
if ('{linklist___usr}' == $user->username) {
return true;
}else{
return false;
}
While everything is working correctly as it should (Users can see only the edit button for the records they have created) I always get an error msg
An error has occurred with a eval'd field - please inform the web-site owner.
Debug: Caught exception on eval in can edit row : syntax error, unexpected BOOL_TRUE in Unknown on line 17