ObjectController: fix preview error for API user

This commit is contained in:
Thomas Gelf 2016-03-03 12:11:06 +01:00
parent 2fa9e7e998
commit db9cc7d0f2

View File

@ -100,7 +100,7 @@ abstract class ObjectController extends ActionController
} else {
$this->view->object = $object;
if ($object->imports()->count() > 0) {
if ($object->supportsImports() && $object->imports()->count() > 0) {
$this->view->actionLinks = $this->view->qlink(
$this->translate('Show resolved'),
$this->getRequest()->getUrl()->with('resolved', true),