user->getRole(); if ($userRole === '' && $comment['visibility'] !== Role::APP_USER) { return; } if ($userRole === Role::APP_MANAGER && $comment['visibility'] === Role::APP_ADMIN) { return; } if ($userRole === Role::APP_USER && $comment['visibility'] !== Role::APP_USER) { return; } ?>