mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
ObjectController: hook has been updated
This commit is contained in:
parent
d83a0aaba5
commit
48ac87cff5
@ -489,7 +489,7 @@ abstract class ObjectController extends ActionController
|
||||
throw new NotFoundError('No such object available');
|
||||
}
|
||||
if ($branch->isBranch() && ! $isApi) {
|
||||
$this->content()->add(new ObjectModificationBranchHint($branch, $object, $modification));
|
||||
$this->content()->add(new ObjectModificationBranchHint($branch, $this->Auth(), $object, $modification));
|
||||
}
|
||||
|
||||
$this->object = $object;
|
||||
@ -522,7 +522,7 @@ abstract class ObjectController extends ActionController
|
||||
|
||||
protected function linkToMergeBranch(Branch $branch)
|
||||
{
|
||||
$link = Branch::requireHook()->linkToBranch($branch);
|
||||
$link = Branch::requireHook()->linkToBranch($branch, $this->Auth(), $this->translate('Merge'));
|
||||
if ($link instanceof Link) {
|
||||
$link->addAttributes(['class' => 'icon-flapping']);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user