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)
|
public function authCanEditService(Auth $auth, $hostname, $service)
|
||||||
{
|
{
|
||||||
|
if ($hostname === null || $service === null) {
|
||||||
|
// TODO: UUID support!
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if ($auth->hasPermission('director/monitoring/services')) {
|
if ($auth->hasPermission('director/monitoring/services')) {
|
||||||
$restriction = null;
|
$restriction = null;
|
||||||
foreach ($auth->getRestrictions('director/monitoring/rw-object-filter') as $restriction) {
|
foreach ($auth->getRestrictions('director/monitoring/rw-object-filter') as $restriction) {
|
||||||
|
|
Loading…
Reference in New Issue