Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
Adding changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramon Navarro Bosch committed Jan 7, 2017
1 parent c8a29d0 commit 0b0783f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/plone.server/CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
1.0a9 (unreleased)
------------------

- Adding HTTP Precondition exception
[ramonnb]

- User zope.schema getter and setter to set attributes
[ramonnb]

Expand Down
6 changes: 4 additions & 2 deletions src/plone.server/plone/server/traversal.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@ async def do_traverse(request, parent, path):

if ISite.providedBy(parent) and \
path[0] != request._db_id:
raise HTTPUnauthorized('Tried to access a site outsite the request')
# Tried to access a site outsite the request
raise HTTPUnauthorized()

if IApplication.providedBy(parent) and \
path[0] != request._site_id:
raise HTTPUnauthorized('Tried to access a site outsite the request')
# Tried to access a site outsite the request
raise HTTPUnauthorized()

try:
if path[0].startswith('_'):
Expand Down

0 comments on commit 0b0783f

Please sign in to comment.