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
e3264d79
Commit
e3264d79
authored
Apr 22, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some permissions bugs in RoleManager.
parent
916c71a7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
lib/python/AccessControl/Role.py
lib/python/AccessControl/Role.py
+8
-7
lib/python/AccessControl/access.dtml
lib/python/AccessControl/access.dtml
+2
-2
No files found.
lib/python/AccessControl/Role.py
View file @
e3264d79
...
...
@@ -84,37 +84,38 @@
##############################################################################
"""Access control support"""
__version__
=
'$Revision: 1.2
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
6
$'
[
11
:
-
2
]
from
Globals
import
HTMLFile
,
MessageDialog
,
Dictionary
from
string
import
join
,
strip
,
split
,
find
from
Acquisition
import
Implicit
import
Globals
import
Globals
,
ExtensionClass
from
Permission
import
Permission
from
Common
import
aq_base
ListType
=
type
([])
class
RoleManager
:
class
RoleManager
(
ExtensionClass
.
Base
)
:
"""An obect that has configurable permissions"""
__ac_permissions__
=
(
(
'Change permissions'
,
(
'permission_settings'
,
(
'manage_access'
,
'permission_settings'
,
'ac_inherited_permissions'
,
'manage_roleForm'
,
'manage_role'
,
'manage_acquiredForm'
,
'manage_acquiredPermissions'
,
'manage_permissionForm'
,
'manage_permission'
,
'manage_changePermissions'
,
'permissionsOfRole'
,
'rolesOfPermission'
,
'acquiredRolesAreUsedBy'
,
'manage_defined_roles'
,
'manage_defined_roles'
,
'userdefined_roles'
,
'manage_listLocalRoles'
,
'manage_editLocalRoles'
,
'manage_setLocalRoles'
,
'manage_delLocalRoles'
,
)),
(
'View management screens'
,
(
'manage_access'
,)),
#
('View management screens', ('manage_access',)),
)
__ac_roles__
=
(
'Manager'
,
'Anonymous'
)
__ac_roles__
=
(
'Manager'
,
'
Owner'
,
'
Anonymous'
)
...
...
lib/python/AccessControl/access.dtml
View file @
e3264d79
...
...
@@ -26,8 +26,8 @@ a permission in addition to selecting to acquire permissions.
<P>
You can define new Roles by using the <EM>User defined roles</EM>
form below.
<
/P>
form below.
<
/P>
<style type="text/css">
<!--
...
...
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