Skip to content

Commit

Permalink
PORTAL_SELF::FIXED: disabled workflows listed
Browse files Browse the repository at this point in the history
  • Loading branch information
ELDiablO59152 committed Jul 30, 2024
1 parent f249a05 commit bc19a4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [GUI] Wrong date formatting in the task list
- [GUI] [PF] Correctly validate and return errors when changing custom PF rules
- [CLUSTER] [PF] Correctly reload configurations when changing SSH/GUI access rules
- [PORTAL] [SELF_SERVICE] Disabled workflows listed


## [2.15.9] - 2024-07-25
Expand Down
7 changes: 4 additions & 3 deletions vulture_os/portal/system/self_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,13 @@ def perform_action(self):
if self.workflow.authentication.enable_external:
repo_id = OpenIDRepository.objects.get(client_id=self.workflow.authentication.oauth_client_id).id

for workflow in Workflow.objects.filter(authentication__repositories_id__exact=repo_id):
for workflow in Workflow.objects.filter(authentication__repositories_id__exact=repo_id, enabled=True):
# Workflow links needs to go through OpenID redirection if that was the repo used to authenticate
if self.workflow.authentication.enable_external or backend_subtype == "openid":
port = workflow.frontend.listener_set.first().port
url = workflow.authentication.get_openid_start_url(
req_scheme="https" if workflow.frontend.listener_set.filter(tls_profiles__gt=0).exists() else "http",
workflow_host=workflow.fqdn,
req_scheme="https" if workflow.frontend.has_tls() else "http",
workflow_host=f"{workflow.fqdn}:{port}" if port not in (443, 80) else workflow.fqdn,
workflow_path=workflow.public_dir,
repo_id=repo_id)
else:
Expand Down

0 comments on commit bc19a4d

Please sign in to comment.