diff --git a/module/file/model.php b/module/file/model.php index 5b4732dedc..0532685aad 100755 --- a/module/file/model.php +++ b/module/file/model.php @@ -1205,11 +1205,12 @@ class fileModel extends model $fileTitleLink = common::hasPriv('file', 'download') ? html::a($downloadLink, $fileTitle . " ({$fileSize})", '_blank', "id='fileTitle$file->id'") : "
" . $fileTitle . " ({$fileSize})
"; $objectType = zget($this->config->file->objectType, $file->objectType); + $viewMethod = $objectType == 'feedback' && $this->config->vision != 'lite' ? 'adminView' : 'view'; $html .= "
  • " . $fileTitleLink; if(strpos('view,edit', $method) !== false) { - if(common::hasPriv($objectType, 'view', $object)) $html = $this->buildFileActions($html, $downloadLink, $imageWidth, $showEdit, $showDelete, $file, $object); + if(common::hasPriv($objectType, $viewMethod, $object)) $html = $this->buildFileActions($html, $downloadLink, $imageWidth, $showEdit, $showDelete, $file, $object); } else {