ObjectController: fix usage link

This commit is contained in:
Thomas Gelf 2018-10-15 14:52:03 +02:00
parent 15a8886db7
commit 35acda4865
1 changed files with 5 additions and 1 deletions

View File

@ -237,11 +237,15 @@ abstract class ObjectController extends ActionController
return $this;
}
/**
* @return $this
* @throws NotFoundError
*/
protected function addActionUsage()
{
$type = $this->getType();
$object = $this->requireObject();
if ($object->isTemplate() && ! $type === 'serviceSet') {
if ($object->isTemplate() && $type !== 'serviceSet') {
$this->actions()->add([
Link::create(
$this->translate('Usage'),