mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
ObjectController: fix preview error for API user
This commit is contained in:
parent
2fa9e7e998
commit
db9cc7d0f2
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user