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
fc1540ed
Commit
fc1540ed
authored
Mar 09, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added protection for acl_users internals.
parent
26a9f2ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
lib/python/AccessControl/User.py
lib/python/AccessControl/User.py
+10
-7
No files found.
lib/python/AccessControl/User.py
View file @
fc1540ed
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Access control package"""
__version__
=
'$Revision: 1.9
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.9
6
$'
[
11
:
-
2
]
import
Globals
,
App
.
Undo
,
socket
,
regex
from
Globals
import
HTMLFile
,
MessageDialog
,
Persistent
,
PersistentMapping
...
...
@@ -333,10 +333,15 @@ class BasicUserFolder(Implicit, Persistent, Navigation, Tabs, RoleManager,
)
__ac_permissions__
=
(
(
'Manage users'
,
(
'manage_users'
,
'getUserNames'
,
'getUser'
,
'getUsers'
,
)),
(
'Manage users'
,
(
'manage_users'
,
'getUserNames'
,
'getUser'
,
'getUsers'
,
)
),
)
# This prevents sneaky access to internal data.
__roles__
=
[]
# ----------------------------------
# Public UserFolder object interface
# ----------------------------------
...
...
@@ -639,7 +644,7 @@ class UserFolder(BasicUserFolder):
A UserFolder holds User objects which contain information
about users including name, password domain, and roles.
UserFolders function chiefly to contol access by authenticating
UserFolders function chiefly to cont
r
ol access by authenticating
users and binding them to a collection of roles."""
meta_type
=
'User Folder'
...
...
@@ -669,9 +674,7 @@ class UserFolder(BasicUserFolder):
def
getUser
(
self
,
name
):
"""Return the named user object or None"""
if
self
.
data
.
has_key
(
name
):
return
self
.
data
[
name
]
return
None
return
self
.
data
.
get
(
name
,
None
)
def
_doAddUser
(
self
,
name
,
password
,
roles
,
domains
):
"""Create a new user"""
...
...
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