Skip to content

Commit

Permalink
Use 403
Browse files Browse the repository at this point in the history
(cherry picked from commit c567a89)
  • Loading branch information
betodealmeida committed Oct 12, 2018
1 parent aae1125 commit e1b12fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2342,7 +2342,7 @@ def results(self, key):
query.sql, query.database, query.schema)
if rejected_tables:
return json_error_response(security_manager.get_table_access_error_msg(
'{}'.format(rejected_tables)), status=401)
'{}'.format(rejected_tables)), status=403)

return json_success(utils.zlib_decompress_to_string(blob))

Expand Down Expand Up @@ -2389,7 +2389,7 @@ def sql_json_call(self, request):
return json_error_response(
security_manager.get_table_access_error_msg(rejected_tables),
link=security_manager.get_table_access_link(rejected_tables),
status=401)
status=403)
session.commit()

select_as_cta = request.form.get('select_as_cta') == 'true'
Expand Down

0 comments on commit e1b12fa

Please sign in to comment.