Fixed not saving baufreigabe when no permission in Pipework
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user