Skip to content

Commit

Permalink
Use 403
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida committed Aug 24, 2018
1 parent 9827925 commit c567a89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/views/core.py
Expand Up @@ -2340,7 +2340,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 @@ -2384,7 +2384,7 @@ def sql_json(self):
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 c567a89

Please sign in to comment.