Fixed not saving baufreigabe when no permission

This commit is contained in:
Frank Schubert
2024-01-30 18:17:10 +01:00
parent 9feb1c5fdf
commit 17e2f87c20
2 changed files with 8 additions and 4 deletions

View File

@@ -152,7 +152,7 @@
foreach($terminations as $term): ?>
<?php if($bcount > 0): ?>
<tr id="termination-<?=$term->id?>-top-header" class="hidden">
<tr id="termination-<?=$term->id?>-top-header" class="hidden" data-last-save="<?=$term->edit?>">
<th>Anschluss</th>
<th>Tiefbau</th>
<th>Patch-/Kabeldaten</th>
@@ -590,6 +590,10 @@ function togglePipework(id) {
}
function validateWorkflowItem(id) {
// disable saving if timestamp changed
var required_fields = {
pop_id: "int",
schrank: "string",
@@ -688,8 +692,8 @@ function validateWorkflowItem(id) {
}
return true;
}
var export_uid = "";
var export_progress = 0;
var downloadUrl;

View File

@@ -306,7 +306,7 @@ class LineworkController extends mfBaseController {
//var_dump($r->get());exit;
if($this->me->is(["Admin", "netowner","pipeplanner", "lineplanner"])) {
if($r->isset("linework_enabled") && $this->me->is(["Admin", "pipeplanner", "lineplanner"])) {
if($r->linework_enabled == 1 && $termination->linework_enabled != 1) {
$termination->linework_enabled = 1;
$termination->linework_enabled_date = date('U');