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
16c1c9f4
Commit
16c1c9f4
authored
Sep 26, 2002
by
Brian Lloyd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecated hasRole failed to return result.
parent
52b72a69
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/AccessControl/User.py
lib/python/AccessControl/User.py
+2
-2
No files found.
doc/CHANGES.txt
View file @
16c1c9f4
...
@@ -6,6 +6,8 @@ Zope Changes
...
@@ -6,6 +6,8 @@ Zope Changes
Bugs Fixed
Bugs Fixed
- Deprecated hasRole alias in User.py failed to return result.
- Collector #580: TALES evaluateBoolean() was squishing 'default'.
- Collector #580: TALES evaluateBoolean() was squishing 'default'.
- Collector #581: TALES Path traversal should not special-case a blank
- Collector #581: TALES Path traversal should not special-case a blank
...
...
lib/python/AccessControl/User.py
View file @
16c1c9f4
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
##############################################################################
##############################################################################
"""Access control package"""
"""Access control package"""
__version__
=
'$Revision: 1.17
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.17
1
$'
[
11
:
-
2
]
import
Globals
,
socket
,
SpecialUsers
,
re
import
Globals
,
socket
,
SpecialUsers
,
re
import
os
import
os
...
@@ -243,7 +243,7 @@ class BasicUser(Implicit):
...
@@ -243,7 +243,7 @@ class BasicUser(Implicit):
warnings
.
warn
(
'BasicUser.hasRole is deprecated, please use '
warnings
.
warn
(
'BasicUser.hasRole is deprecated, please use '
'BasicUser.allowed instead; hasRole was an alias for allowed, but '
'BasicUser.allowed instead; hasRole was an alias for allowed, but '
'you may have ment to use has_role.'
,
DeprecationWarning
)
'you may have ment to use has_role.'
,
DeprecationWarning
)
self
.
allowed
(
*
args
,
**
kw
)
return
self
.
allowed
(
*
args
,
**
kw
)
domains
=
[]
domains
=
[]
...
...
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