get('type') === 'Post' && $user->id === $entity->get('createdById')) { return true; } return false; } }