Commit a3c1daef authored by Tres Seaver's avatar Tres Seaver

  - Disentangle permission settings for related classes (merge from 2.6
    / 2.7 audit).
parent 9c067031
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
############################################################################## ##############################################################################
"""DTML Document objects.""" """DTML Document objects."""
__version__='$Revision: 1.50 $'[11:-2] __version__='$Revision: 1.51 $'[11:-2]
from ZPublisher.Converters import type_converters from ZPublisher.Converters import type_converters
from Globals import HTML, DTMLFile, MessageDialog from Globals import HTML, DTMLFile, MessageDialog
...@@ -45,16 +45,11 @@ class DTMLDocument(PropertyManager, DTMLMethod): ...@@ -45,16 +45,11 @@ class DTMLDocument(PropertyManager, DTMLMethod):
PropertyManager.manage_options + PropertyManager.manage_options +
DTMLMethod.manage_options[2:] DTMLMethod.manage_options[2:]
) )
ps = DTMLMethod.__ac_permissions__
__ac_permissions__=( __ac_permissions__=(
('Change DTML Documents', ps[0], ('Change DTML Documents', ps[1][1]), ps[2], ps[3], ps[4])
('manage_editForm', 'manage', 'manage_main', del ps
'manage_edit', 'manage_upload', 'PUT',
'manage_historyCopy',
'manage_beforeHistoryCopy', 'manage_afterHistoryCopy',
)
),
)
def manage_edit(self,data,title,SUBMIT='Change',dtpref_cols='100%', def manage_edit(self,data,title,SUBMIT='Change',dtpref_cols='100%',
dtpref_rows='20',REQUEST=None): dtpref_rows='20',REQUEST=None):
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
############################################################################## ##############################################################################
"""DTML Method objects.""" """DTML Method objects."""
__version__='$Revision: 1.83 $'[11:-2] __version__='$Revision: 1.84 $'[11:-2]
import History import History
from Globals import HTML, DTMLFile, MessageDialog from Globals import HTML, DTMLFile, MessageDialog
...@@ -73,6 +73,7 @@ class DTMLMethod(RestrictedDTML, HTML, Acquisition.Implicit, RoleManager, ...@@ -73,6 +73,7 @@ class DTMLMethod(RestrictedDTML, HTML, Acquisition.Implicit, RoleManager,
+Cacheable.manage_options +Cacheable.manage_options
) )
# Careful in changes--used by DTMLDocument!
__ac_permissions__=( __ac_permissions__=(
('View management screens', ('View management screens',
('document_src', 'PrincipiaSearchSource')), ('document_src', 'PrincipiaSearchSource')),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment