Skip to content

Commit

Permalink
Merge pull request #965 from dbarzin/dev
Browse files Browse the repository at this point in the history
fix invalid label
  • Loading branch information
dbarzin authored Nov 18, 2024
2 parents b8f2271 + d633c4d commit e2f3356
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions app/Flux.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit e2f3356

Please sign in to comment.