diff options
author | Serena Feng <feng.xiaowei@zte.com.cn> | 2017-12-25 09:23:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-12-25 09:23:00 +0000 |
commit | 304b8eaad63eb7a610adb62f6c97c7a21a2b91fb (patch) | |
tree | 44e832ce1b556736c97b929dfa223daeb8208208 /testapi/opnfv_testapi/common | |
parent | b0170533b7952112f462ec10cad9791d0342a764 (diff) | |
parent | 5df2ce54e5aaadfb5ade5a94d6b42392bf805cc8 (diff) |
Merge "Implement the CRUD operations for Test cases"
Diffstat (limited to 'testapi/opnfv_testapi/common')
-rw-r--r-- | testapi/opnfv_testapi/common/check.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testapi/opnfv_testapi/common/check.py b/testapi/opnfv_testapi/common/check.py index 8a76f17..5dfbc75 100644 --- a/testapi/opnfv_testapi/common/check.py +++ b/testapi/opnfv_testapi/common/check.py @@ -21,7 +21,7 @@ from opnfv_testapi.db import api as dbapi def is_authorized(method): @functools.wraps(method) def wrapper(self, *args, **kwargs): - if CONF.api_authenticate and self.table in ['pods', 'projects']: + if CONF.api_authenticate and self.table in ['pods', 'projects', 'testcases']: testapi_id = self.get_secure_cookie(constants.TESTAPI_ID) if not testapi_id: raises.Unauthorized(message.not_login()) |