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
Sebastian
erp5
Commits
e0bc63b1
Commit
e0bc63b1
authored
Apr 26, 2012
by
Łukasz Nowak
Committed by
Rafael Monnerat
Nov 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow to make specific sections only for logged in users.
parent
d3ba0c06
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
product/ERP5/Document/WebSection.py
product/ERP5/Document/WebSection.py
+6
-0
No files found.
product/ERP5/Document/WebSection.py
View file @
e0bc63b1
...
@@ -228,6 +228,12 @@ class WebSection(Domain, DocumentExtensibleTraversableMixin):
...
@@ -228,6 +228,12 @@ class WebSection(Domain, DocumentExtensibleTraversableMixin):
original_container
=
document
.
getParentValue
(),
original_container
=
document
.
getParentValue
(),
original_id
=
document
.
getId
(),
original_id
=
document
.
getId
(),
editable_absolute_url
=
document
.
absolute_url
())).
__of__
(
self
)
editable_absolute_url
=
document
.
absolute_url
())).
__of__
(
self
)
else
:
isAuthorizationForced
=
getattr
(
self
,
'isAuthorizationForced'
,
None
)
if
isAuthorizationForced
is
not
None
and
isAuthorizationForced
():
if
self
.
getPortalObject
().
portal_membership
.
isAnonymousUser
():
# force anonymous to login
raise
Unauthorized
# Try to use a custom renderer if any
# Try to use a custom renderer if any
custom_render_method_id
=
self
.
getCustomRenderMethodId
()
custom_render_method_id
=
self
.
getCustomRenderMethodId
()
if
custom_render_method_id
is
not
None
:
if
custom_render_method_id
is
not
None
:
...
...
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