From 28d7d3517f7c3de04ce65d449a0e948fde226863 Mon Sep 17 00:00:00 2001 From: parmentelat Date: Mon, 14 Jan 2019 21:11:32 +0100 Subject: [PATCH] adopt similar approach in delete leases, although this was harmless --- PLC/Methods/DeleteLeases.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PLC/Methods/DeleteLeases.py b/PLC/Methods/DeleteLeases.py index 6914c98..506195a 100644 --- a/PLC/Methods/DeleteLeases.py +++ b/PLC/Methods/DeleteLeases.py @@ -44,12 +44,11 @@ class DeleteLeases(Method): # check slices only once if 'verified' not in slice: if self.caller['person_id'] in slice['person_ids']: - pass + slice['verified']=True elif 'pi' not in self.caller['roles']: raise PLCPermissionDenied("Not a member of slice %r"%slice['name']) elif slice['site_id'] not in self.caller['site_ids']: raise PLCPermissionDenied("Slice %r not associated with any of your sites"%slice['name']) - slice['verified']=True lease.delete() -- 2.45.2