Revert an oops in f3bf380bb7fa66b63010e3f6b3b477a8943479e7
This commit is contained in:
parent
751c692e6a
commit
dcbefc33ae
@ -37,7 +37,7 @@ def pillar_server_endpoint_static():
|
|||||||
def pillar_api(token=None):
|
def pillar_api(token=None):
|
||||||
# Check if current_user is initialized (in order to support manage.py
|
# Check if current_user is initialized (in order to support manage.py
|
||||||
# scripts and non authenticated server requests).
|
# scripts and non authenticated server requests).
|
||||||
if token is None and current_user and current_user.is_authenticated():
|
if token is None and current_user and current_user.is_authenticated:
|
||||||
token = current_user.id
|
token = current_user.id
|
||||||
|
|
||||||
api = FlaskInternalApi(
|
api = FlaskInternalApi(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user