Load flask principal permissions even for web and api endpoints.
This commit is contained in:
parent
23cbcb2979
commit
9278871381
6 changed files with 33 additions and 15 deletions
2
app.py
2
app.py
|
@ -8,7 +8,7 @@ from flask.ext.login import LoginManager
|
|||
app = Flask(__name__)
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
Principal(app, use_sessions=False)
|
||||
Principal(app, use_sessions=True)
|
||||
|
||||
app.secret_key = '1cb18882-6d12-440d-a4cc-b7430fb5f884'
|
||||
|
||||
|
|
Reference in a new issue