X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2FStop.py;h=654ac403c23c6fd050ba30f2202f1c61d140231c;hb=24f04841b33b0026a925caefdd1e48419dea36a8;hp=0d80282718db9877f29a07d88f1e00e3060e31c2;hpb=aa9b791a0d1a1537fbeaada81e35f34283a436c0;p=sfa.git diff --git a/sfa/methods/Stop.py b/sfa/methods/Stop.py index 0d802827..654ac403 100644 --- a/sfa/methods/Stop.py +++ b/sfa/methods/Stop.py @@ -26,7 +26,8 @@ class Stop(Method): def call(self, xrn, creds): hrn, type = urn_to_hrn(xrn) - valid_creds = self.api.auth.checkCredentials(creds, 'stopslice', hrn) + (speaking_for, _) = urn_to_hrn(options.get('geni_speaking_for')) + valid_creds = self.api.auth.checkCredentials(creds, 'stopslice', hrn, speaking_for) #log the call origin_hrn = Credential(string=valid_creds[0]).get_gid_caller().get_hrn()