manage api keys permission should be able to see senders

This commit is contained in:
chrisw
2018-01-25 15:29:05 +00:00
parent 7f8e53ee96
commit 5d26d4457f
16 changed files with 133 additions and 62 deletions

View File

@@ -18,7 +18,7 @@ from flask import (
)
from flask._compat import string_types
from flask.globals import _lookup_req_object, _request_ctx_stack
from flask_login import LoginManager
from flask_login import LoginManager, current_user
from flask_wtf import CSRFProtect
from flask_wtf.csrf import CSRFError
from functools import partial
@@ -153,6 +153,10 @@ def init_app(application):
def _attach_current_service():
return {'current_service': current_service}
@application.context_processor
def _attach_current_user():
return{'current_user': current_user}
@application.before_request
def record_start_time():
g.start = monotonic()