Commit 16c1c9f4 authored by Brian Lloyd's avatar Brian Lloyd

Deprecated hasRole failed to return result.

parent 52b72a69
...@@ -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
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
############################################################################## ##############################################################################
"""Access control package""" """Access control package"""
__version__='$Revision: 1.170 $'[11:-2] __version__='$Revision: 1.171 $'[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=[]
......
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