Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Kirill Smelkov
Zope
Commits
c12ebd20
Commit
c12ebd20
authored
Feb 20, 2013
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Protect views of ZPT source with 'View Management Screens' permision.
Fixes LP #978980.
parent
3c92e1f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
doc/CHANGES.rst
doc/CHANGES.rst
+3
-0
src/Products/PageTemplates/ZopePageTemplate.py
src/Products/PageTemplates/ZopePageTemplate.py
+4
-0
No files found.
doc/CHANGES.rst
View file @
c12ebd20
...
...
@@ -8,6 +8,9 @@ http://docs.zope.org/zope2/releases/.
2.12.27 (unreleased)
--------------------
- LP #978980: Protect views of ZPT source with 'View Management Screens'
permision.
2.12.26 (2012-10-31)
--------------------
...
...
src/Products/PageTemplates/ZopePageTemplate.py
View file @
c12ebd20
...
...
@@ -57,6 +57,8 @@ if os.environ.has_key('ZPT_PREFERRED_ENCODING'):
class
Src
(
Explicit
):
""" I am scary code """
security
=
ClassSecurityInfo
()
security
.
declareObjectProtected
(
view_management_screens
)
PUT
=
document_src
=
Acquired
index_html
=
None
...
...
@@ -69,6 +71,8 @@ class Src(Explicit):
" "
return
self
.
document_src
(
REQUEST
)
InitializeClass
(
Src
)
class
ZopePageTemplate
(
Script
,
PageTemplate
,
Historical
,
Cacheable
,
Traversable
,
PropertyManager
):
"Zope wrapper for Page Template using TAL, TALES, and METAL"
...
...
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