

def _handle_view(self, name, **kwargs):
    if (not self.is_accessible()):
        return redirect(url_for('login_admin', next=request.url))
    return super(L4lModelView, self)._handle_view(name, **kwargs)

dataset/ETHPy150Open gateway4labs/labmanager/labmanager/views/admin.py L4lModelView._handle_view/original