X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmethods%2Fget_self_credential.py;h=eeac6d9d9bd3b314fb1b5e9bc1471de6185a7581;hb=d5b04f80e566e152a2f67ecd0f40be81bb222271;hp=8859082af17b7ff44e08956e26feda97355e6070;hpb=2b919f8be9f0b1fa7016424900f4c4a2b2c51f6d;p=sfa.git diff --git a/sfa/methods/get_self_credential.py b/sfa/methods/get_self_credential.py index 8859082a..eeac6d9d 100644 --- a/sfa/methods/get_self_credential.py +++ b/sfa/methods/get_self_credential.py @@ -78,7 +78,9 @@ class get_self_credential(Method): raise ConnectionKeyGIDMismatch(gid.get_subject()) # get the right of this record - caller_hrn = certificate.get_subject() + #caller_hrn = certificate.get_subject() + # server.cert has subject 'registry' + caller_hrn=hrn rights = self.api.auth.determine_user_rights(caller_hrn, record) if rights.is_empty(): raise PermissionError(caller_hrn + " has no rights to " + record.get_name())