CS

```php
if (
    $this->attribute( 'user_id' ) == eZUser::currentUserID()
    && eZINI::instance()->variable( 'eZStarRating', 'UseUserSession' ) === 'enabled' 
)