Skip to content
Snippets Groups Projects

Resolve "Provide URL representation for every object"

Merged Jonathan Weth requested to merge 871-provide-url-representation-for-every-object into master
1 file
+ 6
1
Compare changes
  • Side-by-side
  • Inline
+ 6
1
@@ -1608,7 +1608,12 @@ class ObjectRepresentationView(View):
authenticator_class = ObjectAuthenticator.get_object_by_name(authenticator)
if not authenticator_class:
continue
if authenticator_class().authenticate(request, self.object):
obj = authenticator_class().authenticate(request, self.object)
if obj:
if self.object is None:
self.object = obj
elif obj != self.object:
raise BadRequest("Ambiguous objects identified")
return True
raise PermissionDenied()
Loading