Skip to content

Commit

Permalink
fix context
Browse files Browse the repository at this point in the history
  • Loading branch information
mutantsan committed Jan 28, 2024
1 parent f5291a6 commit c96a171
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ckanext/files/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ class FilesGetFileView(MethodView):
def get(self, file_id: str):
try:
file_data = tk.get_action("files_file_show")(
{"ignore_auth": True}, {"id": file_id}
{
"user": tk.current_user.name,
"auth_user_obj": tk.current_user,
},
{"id": file_id},
)
except (tk.ValidationError, OSError) as e:
except (tk.ValidationError, OSError):
return

return tk.redirect_to(
Expand Down

0 comments on commit c96a171

Please sign in to comment.