From: Tony Mack Date: Mon, 9 Aug 2010 16:32:23 +0000 (+0000) Subject: should be checking for the getticket priv X-Git-Tag: sfa-1.0-0~60 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=79da655e057e2087e04d7a827a3370abdac1b879;p=sfa.git should be checking for the getticket priv --- diff --git a/sfa/methods/GetTicket.py b/sfa/methods/GetTicket.py index afd7f498..119ae48d 100644 --- a/sfa/methods/GetTicket.py +++ b/sfa/methods/GetTicket.py @@ -42,7 +42,7 @@ class GetTicket(Method): def call(self, xrn, creds, rspec, users): hrn, type = urn_to_hrn(xrn) # Find the valid credentials - valid_creds = self.api.auth.checkCredentials(creds, 'createsliver', hrn) + valid_creds = self.api.auth.checkCredentials(creds, 'getticket', hrn) origin_hrn = Credential(string=valid_creds[0]).get_gid_caller().get_hrn() #log the call