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, 2023
1 parent 27d5f44 commit 3a186b6
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 3a186b6

Please sign in to comment.