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
44f0e9ad
Commit
44f0e9ad
authored
Jan 15, 2002
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setting proxy roles on DTMLMethod/Documents has been broken
due to changes in the security machinery
parent
efb60e83
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
doc/CHANGES.txt
doc/CHANGES.txt
+2
-0
lib/python/OFS/DTMLMethod.py
lib/python/OFS/DTMLMethod.py
+2
-2
No files found.
doc/CHANGES.txt
View file @
44f0e9ad
...
...
@@ -8,6 +8,8 @@ Zope Changes
Bugs Fixed
- Setting proxy roles on DTMLMethods and Documents has been broken
- Collector #99: items(), keys() and values() methods
of IIBucket objects has been broken when called with
min/max parameters.
...
...
lib/python/OFS/DTMLMethod.py
View file @
44f0e9ad
...
...
@@ -12,7 +12,7 @@
##############################################################################
"""DTML Method objects."""
__version__
=
'$Revision: 1.7
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.7
3
$'
[
11
:
-
2
]
import
History
from
Globals
import
HTML
,
DTMLFile
,
MessageDialog
...
...
@@ -278,7 +278,7 @@ class DTMLMethod(RestrictedDTML, HTML, Acquisition.Implicit, RoleManager,
if
roles
is
None
:
roles
=
self
.
_proxy_roles
if
not
roles
:
return
user
=
u
=
getSecurityManager
().
getUser
()
user
=
user
.
hasRole
user
=
user
.
allowed
for
r
in
roles
:
if
r
and
not
user
(
self
,
(
r
,)):
user
=
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