Custom attribute only displays on screen in admin mode

Permalink
I have a custom attribute (rating) attached to a page type.
When I call it from a custom block template (page_list) it displays fine when I am logged in as admin, but when I log out, it is gone.

$rh = Loader::helper('rating');
$value = $cobj->getCollectionAttributeValue('review_rating');
echo $rh->outputDisplay($value);

 
ijessup replied on at Permalink Reply
ijessup
Is it possible to see more code? From what I see, there shouldn't be any difference between users.