Skip to content

Commit

Permalink
Fix view parameter type in JobsService index
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Jul 10, 2024
1 parent 5f48ca7 commit f617080
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/webapps/galaxy/services/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def index(
# TODO: optimize if this crucial
if check_security_of_jobs and not security_check(trans, job.history, check_accessible=True):
raise exceptions.ItemAccessibilityException("Cannot access the request job objects.")
job_dict = job.to_dict(view, system_details=is_admin)
job_dict = job.to_dict(view.value, system_details=is_admin)
if view == JobIndexViewEnum.admin_job_list:
job_dict["decoded_job_id"] = job.id
if user_details:
Expand All @@ -97,7 +97,7 @@ def index(

def _check_nonadmin_access(
self,
view: str,
view: JobIndexViewEnum,
user_details: bool,
decoded_user_id: Optional[DecodedDatabaseIdField],
trans_user_id: Optional[int],
Expand Down

0 comments on commit f617080

Please sign in to comment.