pass options to auth.check
[sfa.git] / sfa / methods / ListResources.py
index a9ffe76..e7f1631 100644 (file)
@@ -33,10 +33,8 @@ class ListResources(Method):
             else:
                 raise SfaInvalidArgument('Must specify an rspec version option. geni_rspec_version cannot be null')
 
-        (speaking_for, _) = urn_to_hrn(options.get('geni_speaking_for'))
         # Find the valid credentials
-        valid_creds = self.api.auth.checkCredentials(creds, 'listnodes', speaking_for_hrn=speaking_for)
+        valid_creds = self.api.auth.checkCredentials(creds, 'listnodes', options=options)
 
         # get hrn of the original caller 
         origin_hrn = options.get('origin_hrn', None)