Skip to content

Commit

Permalink
Protect views of ZPT source with 'View Management Screens' permision.
Browse files Browse the repository at this point in the history
Fixes LP #978980.
  • Loading branch information
tseaver committed Feb 20, 2013
1 parent 3c92e1f commit c12ebd2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/CHANGES.rst
Expand Up @@ -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)
--------------------
Expand Down
4 changes: 4 additions & 0 deletions src/Products/PageTemplates/ZopePageTemplate.py
Expand Up @@ -57,6 +57,8 @@

class Src(Explicit):
""" I am scary code """
security = ClassSecurityInfo()
security.declareObjectProtected(view_management_screens)

PUT = document_src = Acquired
index_html = None
Expand All @@ -69,6 +71,8 @@ def __call__(self, REQUEST, RESPONSE):
" "
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"
Expand Down

0 comments on commit c12ebd2

Please sign in to comment.