Skip to content

Commit

Permalink
CSV Upload:
Browse files Browse the repository at this point in the history
- Add has_access decorator to new custom view so it is secure
  • Loading branch information
Antonio-RiveroMartnez committed Nov 27, 2022
1 parent 53f9b8c commit 236d0c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions superset/views/database/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ class CustomFormView(SimpleFormView):
"""

@expose("/form", methods=["GET"])
@has_access
def this_form_get(self) -> Any:
self._init_vars()
form = self.form.refresh()
Expand All @@ -136,6 +137,7 @@ def this_form_get(self) -> Any:
)

@expose("/form", methods=["POST"])
@has_access
def this_form_post(self) -> Any:
self._init_vars()
form = self.form.refresh()
Expand Down

0 comments on commit 236d0c1

Please sign in to comment.