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
110ffbfc
Commit
110ffbfc
authored
Jun 30, 2003
by
Brian Lloyd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for bug 959/514
parent
04402a54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lib/python/AccessControl/User.py
lib/python/AccessControl/User.py
+5
-2
No files found.
lib/python/AccessControl/User.py
View file @
110ffbfc
...
...
@@ -12,7 +12,7 @@
##############################################################################
"""Access control package"""
__version__
=
'$Revision: 1.17
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.17
7
$'
[
11
:
-
2
]
import
Globals
,
socket
,
SpecialUsers
,
re
import
os
...
...
@@ -263,7 +263,10 @@ class BasicUser(Implicit):
def
has_permission
(
self
,
permission
,
object
):
"""Check to see if a user has a given permission on an object."""
return
getSecurityManager
().
checkPermission
(
permission
,
object
)
roles
=
rolesForPermissionOn
(
permission
,
object
)
if
type
(
roles
)
is
type
(
''
):
roles
=
[
roles
]
return
self
.
allowed
(
object
,
roles
)
def
__len__
(
self
):
return
1
def
__str__
(
self
):
return
self
.
getUserName
()
...
...
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