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
995ab4d7
Commit
995ab4d7
authored
Jan 10, 2001
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed allowed method to user object_roles as opposed to roles.
parent
86390354
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
lib/python/AccessControl/User.py
lib/python/AccessControl/User.py
+7
-7
No files found.
lib/python/AccessControl/User.py
View file @
995ab4d7
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Access control package"""
__version__
=
'$Revision: 1.12
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.12
6
$'
[
11
:
-
2
]
import
Globals
,
socket
,
ts_regex
,
SpecialUsers
import
os
...
...
@@ -251,7 +251,7 @@ class BasicUser(Implicit):
if
'Shared'
in
object_roles
:
# Damn, old role setting. Waaa
object_roles
=
self
.
_shared_roles
(
object
)
if
'Anonymous'
in
roles
:
return
1
if
'Anonymous'
in
object_
roles
:
return
1
return
None
# Note that if self were not wrapped, it would
# not be possible to determine the user's context
...
...
@@ -260,12 +260,12 @@ class BasicUser(Implicit):
# wrapped user objects, this is safe.
return
1
if
'Shared'
in
roles
:
if
'Shared'
in
object_
roles
:
# Damn, old role setting. Waaa
roles
=
self
.
_shared_roles
(
object
)
if
roles
is
None
or
'Anonymous'
in
roles
:
return
1
while
'Shared'
in
roles
:
roles
.
remove
(
'Shared'
)
return
self
.
allowed
(
object
,
roles
)
object_
roles
=
self
.
_shared_roles
(
object
)
if
object_roles
is
None
or
'Anonymous'
in
object_
roles
:
return
1
while
'Shared'
in
object_roles
:
object_
roles
.
remove
(
'Shared'
)
return
self
.
allowed
(
object
,
object_
roles
)
return
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