diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2013-10-16 01:31:03 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2013-10-16 01:31:03 +0200 |
commit | 3d2ba33917b5b72a5eaf57a3843ee9c8033d15c9 (patch) | |
tree | 19834310851470302a47dbe3a7b69f170fb97797 /app/views/__init__.py | |
parent | d64e80b53fa82af41c6e49b9de08632348c3527a (diff) | |
download | kosten-3d2ba33917b5b72a5eaf57a3843ee9c8033d15c9.tar.gz kosten-3d2ba33917b5b72a5eaf57a3843ee9c8033d15c9.tar.bz2 kosten-3d2ba33917b5b72a5eaf57a3843ee9c8033d15c9.zip |
Check user's authorisation when loading entries by ID.
Diffstat (limited to 'app/views/__init__.py')
-rw-r--r-- | app/views/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/__init__.py b/app/views/__init__.py index c9d9e8f..8737d07 100644 --- a/app/views/__init__.py +++ b/app/views/__init__.py @@ -7,14 +7,14 @@ from .. import app, db # Some general imports # from ..login import current_user, login_required -from ..utils import templated, redirect +from ..utils import templated, redirect, assert_authorisation from ..flask_extend import Blueprint from flask import flash __all__ = [ 'db', 'app', 'current_user', 'login_required', - 'templated', 'redirect', + 'assert_authorisation', 'templated', 'redirect', 'Blueprint', 'flash', 'request', 'url_for' ] |