summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/handlers
diff options
context:
space:
mode:
authorSerena Feng <feng.xiaowei@zte.com.cn>2018-03-01 07:28:45 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-03-01 07:28:45 +0000
commit3fd0a832c8f8c1fb55a23f137e0b442084d36363 (patch)
tree3d4a94227e7658cff47fc594ae28e60893fa7f05 /testapi/opnfv_testapi/handlers
parent788d670037a77b35148551ebecf1314146e5a4b7 (diff)
parent4aa95918da586d3c1f9bf19a19c5cd55541c38d0 (diff)
Merge "Prevent to delete the pods"
Diffstat (limited to 'testapi/opnfv_testapi/handlers')
-rw-r--r--testapi/opnfv_testapi/handlers/base_handlers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testapi/opnfv_testapi/handlers/base_handlers.py b/testapi/opnfv_testapi/handlers/base_handlers.py
index ed4aeb2..350c38d 100644
--- a/testapi/opnfv_testapi/handlers/base_handlers.py
+++ b/testapi/opnfv_testapi/handlers/base_handlers.py
@@ -179,7 +179,7 @@ class GenericApiHandler(web.RequestHandler):
@gen.coroutine
@check.not_exist
@check.is_authorized
- @check.is_allowed
+ @check.is_reource_tied
def _delete(self, data, query=None):
yield dbapi.db_delete(self.table, query)
self.finish_request()
@@ -190,7 +190,7 @@ class GenericApiHandler(web.RequestHandler):
@check.not_exist
@check.updated_one_not_exist
@check.is_authorized
- @check.is_allowed
+ @check.is_reource_tied
def _update(self, data, query=None, **kwargs):
data = self.table_cls.from_dict(data)
update_req = self._update_requests(data)