mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 03:09:11 +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();
|
$type = $this->getType();
|
||||||
$ltype = strtolower($type);
|
$ltype = strtolower($type);
|
||||||
|
$this->assertPermission('director/' . $type . 's/read');
|
||||||
$dummy = $this->dummyObject();
|
$dummy = $this->dummyObject();
|
||||||
|
|
||||||
if (! in_array($type, $this->globalTypes)) {
|
if (! in_array($type, $this->globalTypes)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user