Skip to content

Commit

Permalink
fixup! Raise Unauthorized when the user has no permission to create t…
Browse files Browse the repository at this point in the history
…he content
  • Loading branch information
ale-rt committed May 19, 2022
1 parent 2f1ea9b commit e38aada
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plone/api/tests/test_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ def test_create_with_not_lowercase_id(self):
def test_create_anonymous_unauthorized(self):
from AccessControl import Unauthorized
from plone.app.testing import logout

logout()
with self.assertRaises(Unauthorized):
obj = api.content.create(
Expand Down

0 comments on commit e38aada

Please sign in to comment.