public function canRateItem(array $item, array $viewingUser = null)
{
$this->standardizeViewingUserReference($viewingUser);
if ($item['user_id'] == $viewingUser['user_id'])
{
return false;
}
if (XenForo_Permission::hasPermission($viewingUser['permissions'], 'nfljsc', 'canRateItem'))
{
$hasRated = $this->hasRated($viewingUser['user_id'], $item['item_id']);
if ($hasRated)
{
return false;
}
return true;
}
return false;
}