fixed raised exception
authorTony Mack <tmack@cs.princeton.edu>
Tue, 2 Jun 2009 20:28:13 +0000 (20:28 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 2 Jun 2009 20:28:13 +0000 (20:28 +0000)
geni/methods/get_credential.py

index 3cfe5c1..4ee2e2d 100644 (file)
@@ -111,7 +111,7 @@ class get_credential(Method):
 
         rights = self.api.auth.determine_user_rights(None, record)
         if rights.is_empty():
-            raise PermissionError(self.api.auth.client_cred.get_gid_object().get_hrn() + " has no rights to " + record.get_name())
+            raise PermissionError(gid.get_hrn() + " has no rights to " + record.get_name())
 
         # create the credential
         gid = record.get_gid_object()