mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
ObjectsController: add sample permission check
This commit is contained in:
parent
107b872b63
commit
570f8d9440
@ -62,6 +62,7 @@ abstract class ObjectsController extends ActionController
|
||||
{
|
||||
$type = $this->getType();
|
||||
$ltype = strtolower($type);
|
||||
$this->assertPermission('director/' . $type . 's/read');
|
||||
$dummy = $this->dummyObject();
|
||||
|
||||
if (! in_array($type, $this->globalTypes)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user