From d633c4d6635eef50230707c66bc500ef7fa2afbb Mon Sep 17 00:00:00 2001 From: didier Date: Mon, 18 Nov 2024 19:10:16 +0100 Subject: [PATCH] fix invalid label --- app/Flux.php | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/app/Flux.php b/app/Flux.php index e9a836b5..6e344a1b 100644 --- a/app/Flux.php +++ b/app/Flux.php @@ -51,13 +51,11 @@ public function source_id(): ?string if ($this->application_source_id !== null) { return 'APP_' . $this->application_source_id; } - if (auth()->user()->granularity >= 2) { - if ($this->service_source_id !== null) { - return 'SERV_' . $this->service_source_id; - } - if ($this->module_source_id !== null) { - return 'MOD_' . $this->module_source_id; - } + if ($this->service_source_id !== null) { + return 'SRV_' . $this->service_source_id; + } + if ($this->module_source_id !== null) { + return 'MOD_' . $this->module_source_id; } if ($this->database_source_id !== null) { return 'DB_' . $this->database_source_id; @@ -70,13 +68,11 @@ public function dest_id(): ?string if ($this->application_dest_id !== null) { return 'APP_' . $this->application_dest_id; } - if (auth()->user()->granularity >= 2) { - if ($this->service_dest_id !== null) { - return 'SERV_' . $this->service_dest_id; - } - if ($this->module_dest_id !== null) { - return 'MOD_' . $this->module_dest_id; - } + if ($this->service_dest_id !== null) { + return 'SERV_' . $this->service_dest_id; + } + if ($this->module_dest_id !== null) { + return 'MOD_' . $this->module_dest_id; } if ($this->database_dest_id !== null) { return 'DB_' . $this->database_dest_id;