Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kasra Jamshidi
erp5
Commits
a8f6c841
Commit
a8f6c841
authored
Apr 10, 2014
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! add 'Access contents information' permission to Anonymous in DMS modules.
parent
5c991719
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
bt5/networkcache_erp5/TestTemplateItem/portal_components/test.erp5.testShaCacheSecurity.py
...eItem/portal_components/test.erp5.testShaCacheSecurity.py
+3
-3
No files found.
bt5/networkcache_erp5/TestTemplateItem/portal_components/test.erp5.testShaCacheSecurity.py
View file @
a8f6c841
...
...
@@ -103,7 +103,7 @@ class TestShaCacheSecurity(ShaCacheMixin, ShaSecurityMixin, SecurityTestCase):
def
test_anonymous_can_not_read_document_list
(
self
):
"""
Anonymous can
not read any
document object under document_module
Anonymous can
read a published
document object under document_module
and image_module.
"""
for
module
in
(
'image_module'
,
'document_module'
,):
...
...
@@ -119,8 +119,8 @@ class TestShaCacheSecurity(ShaCacheMixin, ShaSecurityMixin, SecurityTestCase):
self
.
logout
()
self
.
assertTrue
(
self
.
portal
.
portal_membership
.
isAnonymousUser
())
self
.
assertRaises
(
Unauthorized
,
document
.
view
)
self
.
assertRaises
(
Unauthorized
,
document
)
document
.
view
(
)
document
(
)
def
test_user_can_create_and_view_document_list
(
self
):
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment