mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
Monitoring permissions for single services only
This commit is contained in:
parent
82656de2c2
commit
5fe0a8812c
@ -63,6 +63,10 @@ class Monitoring
|
||||
|
||||
public function authCanEditService(Auth $auth, $hostname, $service)
|
||||
{
|
||||
if ($hostname === null || $service === null) {
|
||||
// TODO: UUID support!
|
||||
return false;
|
||||
}
|
||||
if ($auth->hasPermission('director/monitoring/services')) {
|
||||
$restriction = null;
|
||||
foreach ($auth->getRestrictions('director/monitoring/rw-object-filter') as $restriction) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user