Flask-Admin & Authentication: "/admin" is protected but "/admin/anything-else" is not Flask-Admin & Authentication: "/admin" is protected but "/admin/anything-else" is not flask flask

Flask-Admin & Authentication: "/admin" is protected but "/admin/anything-else" is not


If you go to flask_superadmin/base.py, at line 193 there is the following code snippet:

def _handle_view(self, name, *args, **kwargs):    if not self.is_accessible():        return abort(403)

So maybe this method has to be overriden by AdminIndex to avoid returning abort(403) but to redirect to /login