Custom 403 Page

Added custom 403 page.

Change-Id:Id5ccb3835748c9a627a4a27b9332abf1f45a1648
This commit is contained in:
kelepirci 2016-08-07 02:39:02 +03:00 committed by ozkasgarli
parent 72f4ec9269
commit 673765cb75
2 changed files with 17 additions and 0 deletions

View File

@ -5,6 +5,10 @@ from . import main
def page_not_found(e):
return render_template('404.html'), 404
@main.app_errorhandler(403)
def internal_server_error(e):
return render_template('403.html'), 403
@main.app_errorhandler(500)
def internal_server_error(e):
return render_template('500.html'), 500

13
dash/templates/403.html Normal file
View File

@ -0,0 +1,13 @@
{% extends "adminlte/base_without_nav.html" %}
{% block title %}403 ERROR{% endblock %}
{% block description %}dash-stack - Permission Error{% endblock %}
{% block bodytag %}login-page{% endblock %}
{% block body %}
<div class="page-header">
<h1>You do not have permission to access this page.</h1>
</div>
{% endblock %}