Skip to content

Commit e38aada

Browse files
committed
fixup! Raise Unauthorized when the user has no permission to create the content
1 parent 2f1ea9b commit e38aada

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/plone/api/tests/test_content.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ def test_create_with_not_lowercase_id(self):
390390
def test_create_anonymous_unauthorized(self):
391391
from AccessControl import Unauthorized
392392
from plone.app.testing import logout
393+
393394
logout()
394395
with self.assertRaises(Unauthorized):
395396
obj = api.content.create(

0 commit comments

Comments
 (0)