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
a69225a6
Commit
a69225a6
authored
Jan 30, 2004
by
Brian Lloyd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix difference in behavior between C and Python policies.
parent
5ca49ca4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
lib/python/AccessControl/User.py
lib/python/AccessControl/User.py
+12
-3
No files found.
lib/python/AccessControl/User.py
View file @
a69225a6
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
##############################################################################
##############################################################################
"""Access control package"""
"""Access control package"""
__version__
=
'$Revision: 1.18
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.18
2
$'
[
11
:
-
2
]
import
Globals
,
socket
,
SpecialUsers
,
re
import
Globals
,
socket
,
SpecialUsers
,
re
import
os
import
os
...
@@ -592,8 +592,17 @@ class BasicUserFolder(Implicit, Persistent, Navigation, Tabs, RoleManager,
...
@@ -592,8 +592,17 @@ class BasicUserFolder(Implicit, Persistent, Navigation, Tabs, RoleManager,
security
=
getSecurityManager
()
security
=
getSecurityManager
()
try
:
try
:
try
:
try
:
if
security
.
validate
(
accessed
,
container
,
name
,
value
,
roles
):
# This is evil: we cannot pass _noroles directly because
return
1
# it is a special marker, and that special marker is not
# the same between the C and Python policy implementations.
# We __really__ need to stop using this marker pattern!
if
roles
is
_noroles
:
if
security
.
validate
(
accessed
,
container
,
name
,
value
):
return
1
else
:
if
security
.
validate
(
accessed
,
container
,
name
,
value
,
roles
):
return
1
except
:
except
:
noSecurityManager
()
noSecurityManager
()
raise
raise
...
...
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