Skip to content

Commit

Permalink
fix regression in access to object names w/o version qualifier
Browse files Browse the repository at this point in the history
When resolving to the latest version implicitly, only local
ACLs were loaded (no ancestor ACLs) and so access was more
restricted than if resolving the same version explicitly with
the version ID in the URL.
  • Loading branch information
karlcz committed Sep 8, 2023
1 parent 4587330 commit 6161994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hatrac/model/directory/pgsql.py
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ def get_current_version(self, object, conn=None, cur=None):
assert object.id is not None, object
results = self._version_list(conn, cur, object.id, limit=1)
if results:
return HatracObjectVersion(self, object, **results[0])
return self.version_resolve(object, results[0]['version'], conn=conn, cur=cur)
else:
raise core.Conflict('Object %s currently has no content.' % object)

Expand Down

0 comments on commit 6161994

Please sign in to comment.