X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Ftrust%2Fauth.py;h=54fd9d23b92f15c07a4f798ec70fc631cb3040e2;hb=f2282434e40e06365e0fdd3f9bc273a793f41235;hp=0c0327929ccd0bcb1749b0be21eda6213a0533e7;hpb=61f39da904abf8ddd88091fa3f39b8c91cdf5ce6;p=sfa.git diff --git a/sfa/trust/auth.py b/sfa/trust/auth.py index 0c032792..54fd9d23 100644 --- a/sfa/trust/auth.py +++ b/sfa/trust/auth.py @@ -225,9 +225,12 @@ class Auth: @param name human readable name to test """ object_hrn = self.object_gid.get_hrn() - if object_hrn == name: - return - if name.startswith(object_hrn + "."): + #strname = str(name).strip("['']") + if object_hrn == name: + #if object_hrn == strname: + return + if name.startswith(object_hrn + ".") : + #if strname.startswith((object_hrn + ".")) is True: return #if name.startswith(get_authority(name)): #return