I found:
logs --- error: Error [ 0 ]: Object of class User_Model could not be converted to string
---------------------------------------------------------------------------
static public function can_view_orders()
{
if (identity::active_user()->admin){
return true;
}
print identity::active_user();
foreach (identity::active_user()->groups() as $group){
if ($group->name == 'shop'){
return true;
}
}
return false;
}
--------------------------------------------------------------------------
How can I modify this record?
------------------------------------------------
if (identity::active_user()->admin){
------------------------------------------------
Thank you.