Fixed not saving baufreigabe when no permission in Pipework

This commit is contained in:
Frank Schubert
2024-01-30 18:28:42 +01:00
parent 17e2f87c20
commit 7aaa73de39
2 changed files with 2 additions and 6 deletions

View File

@@ -300,7 +300,7 @@ class PipeworkController extends mfBaseController {
//var_dump($r->get());exit;
if($this->me->is(["Admin", "netowner", "pipeplanner"])) {
if($r->isset("pipework_enabled") && $this->me->is(["Admin", "pipeplanner"])) {
if($r->pipework_enabled == 1 && $building->pipework_enabled != 1) {
$building->pipework_enabled = 1;
$building->pipework_enabled_date = date('U');