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
e298e4e9
Commit
e298e4e9
authored
May 01, 2001
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for missing security declarations on setPermissionMapping and getPermissionMapping
parent
299c6e41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
lib/python/AccessControl/PermissionMapping.py
lib/python/AccessControl/PermissionMapping.py
+6
-2
No files found.
lib/python/AccessControl/PermissionMapping.py
View file @
e298e4e9
...
@@ -92,10 +92,9 @@ need the object's ordinary permissions intact so we can manage it.
...
@@ -92,10 +92,9 @@ need the object's ordinary permissions intact so we can manage it.
import
ExtensionClass
,
Acquisition
import
ExtensionClass
,
Acquisition
from
Permission
import
pname
from
Permission
import
pname
from
Owned
import
UnownableOwner
from
Owned
import
UnownableOwner
from
AccessControl.PermissionRole
import
PermissionRole
class
RoleManager
:
class
RoleManager
:
def
manage_getPermissionMapping
(
self
):
def
manage_getPermissionMapping
(
self
):
"""Return the permission mapping for the object
"""Return the permission mapping for the object
...
@@ -119,6 +118,9 @@ class RoleManager:
...
@@ -119,6 +118,9 @@ class RoleManager:
p
=
perms
.
get
(
getPermissionMapping
(
ac_perms
[
0
],
wrapper
),
''
)
p
=
perms
.
get
(
getPermissionMapping
(
ac_perms
[
0
],
wrapper
),
''
)
a
({
'permission_name'
:
ac_perms
[
0
],
'class_permission'
:
p
})
a
({
'permission_name'
:
ac_perms
[
0
],
'class_permission'
:
p
})
return
r
return
r
manage_getPermissionMapping__roles__
=
PermissionRole
(
'Change permissions'
)
def
manage_setPermissionMapping
(
self
,
def
manage_setPermissionMapping
(
self
,
permission_names
=
[],
permission_names
=
[],
...
@@ -149,6 +151,8 @@ class RoleManager:
...
@@ -149,6 +151,8 @@ class RoleManager:
REQUEST
,
REQUEST
,
manage_tabs_message
=
'The permission mapping has been updated'
)
manage_tabs_message
=
'The permission mapping has been updated'
)
manage_setPermissionMapping__roles__
=
PermissionRole
(
'Change permissions'
)
def
_isBeingUsedAsAMethod
(
self
,
REQUEST
=
None
,
wannaBe
=
0
):
def
_isBeingUsedAsAMethod
(
self
,
REQUEST
=
None
,
wannaBe
=
0
):
try
:
try
:
if
hasattr
(
self
,
'aq_self'
):
if
hasattr
(
self
,
'aq_self'
):
...
...
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