tricircle/tricircle/api
zhangxiaohan bcc307ae5b The admin role judge exception caused the policy to fail
1. What is the problem?

Caused the policy to fail When use 'admin' role to create pod,
Error response is "Unauthorized to create pods".

2. What is the solution to the problem?
In context, the 'HTTP_X_ROLE' maybe include mutilple role, so use
'admin' in environ.get('HTTP_X_ROLE') to judge rather than equality.

Change-Id: If0a765603e56e0325a31f7a3e0202f52fd1cbe38
2018-08-21 11:44:12 +08:00
..
controllers The admin role judge exception caused the policy to fail 2018-08-21 11:44:12 +08:00
__init__.py Move statless design from experiment to master branch 2016-01-14 12:56:57 +08:00
app.py Support pagination for resource routing list operations 2017-07-12 17:09:48 +08:00
opts.py Move statless design from experiment to master branch 2016-01-14 12:56:57 +08:00
wsgi.py Remove log translations 2017-04-11 09:17:08 +08:00