mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
Revert "Make hooks respect module permissions"
This reverts commit 4d2e6d2d8709da9168af824c36458dd5857b08a8.
This commit is contained in:
parent
4d2e6d2d87
commit
1cd2cfbdc9
@ -4,7 +4,6 @@
|
|||||||
namespace Icinga\Application\Modules;
|
namespace Icinga\Application\Modules;
|
||||||
|
|
||||||
use Exception;
|
use Exception;
|
||||||
use Icinga\Authentication\Auth;
|
|
||||||
use Zend_Controller_Router_Route;
|
use Zend_Controller_Router_Route;
|
||||||
use Zend_Controller_Router_Route_Abstract;
|
use Zend_Controller_Router_Route_Abstract;
|
||||||
use Zend_Controller_Router_Route_Regex;
|
use Zend_Controller_Router_Route_Regex;
|
||||||
@ -1283,7 +1282,6 @@ class Module
|
|||||||
*/
|
*/
|
||||||
protected function provideHook($name, $implementation = null, $key = null)
|
protected function provideHook($name, $implementation = null, $key = null)
|
||||||
{
|
{
|
||||||
if (Auth::getInstance()->hasPermission('module/' . $this->name)) {
|
|
||||||
if ($implementation === null) {
|
if ($implementation === null) {
|
||||||
$implementation = $name;
|
$implementation = $name;
|
||||||
}
|
}
|
||||||
@ -1297,8 +1295,6 @@ class Module
|
|||||||
}
|
}
|
||||||
|
|
||||||
Hook::register($name, $class, $class);
|
Hook::register($name, $class, $class);
|
||||||
}
|
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user