Commit 462ac84e authored by Jack Pearkes's avatar Jack Pearkes

Change the error code for failed auth to 404

This changes the HTTP error from 403 to 404 for views that are protected with `is_accessible()`.
parent 264c2b42
...@@ -244,7 +244,7 @@ class BaseView(object): ...@@ -244,7 +244,7 @@ class BaseView(object):
This method will be executed before calling any view method. This method will be executed before calling any view method.
By default, it will check if admin class is accessible and if it is not - will By default, it will check if admin class is accessible and if it is not - will
throw HTTP 403 error. throw HTTP 404 error.
:param name: :param name:
View function name View function name
...@@ -252,7 +252,7 @@ class BaseView(object): ...@@ -252,7 +252,7 @@ class BaseView(object):
View function arguments View function arguments
""" """
if not self.is_accessible(): if not self.is_accessible():
return abort(403) return abort(404)
class AdminIndexView(BaseView): class AdminIndexView(BaseView):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment