Skip to content

Commit fe0345d

Browse files
author
Ralf Schlatterbeck
committed
- fix create permission for xmlrpc, too
1 parent d4e1f83 commit fe0345d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CHANGES.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ are given with the most recent entry first.
55

66
Fixes:
77
- Proper handling of 'Create' permissions in both mail gateway (earlier
8-
commit r4405 by Richard) and web interface, this used to check 'Edit'
9-
permission previously. See
8+
commit r4405 by Richard), web interface, and xmlrpc. This used to
9+
check 'Edit' permission previously. See
1010
http://thread.gmane.org/gmane.comp.bug-tracking.roundup.devel/5133
1111
Add regression tests for proper handling of 'Create' and 'Edit'
1212
permissions.

roundup/xmlrpc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ def create(self, classname, *args):
113113
raise UsageError, 'you must provide the "%s" property.'%key
114114

115115
for key in props:
116-
if not self.db.security.hasPermission('Edit', self.db.getuid(), classname,
117-
property=key):
118-
raise Unauthorised('Permission to set %s.%s denied'%(classname, key))
116+
if not self.db.security.hasPermission('Create', self.db.getuid(),
117+
classname, property=key):
118+
raise Unauthorised('Permission to create %s.%s denied'%(classname, key))
119119

120120
# do the actual create
121121
try:

0 commit comments

Comments
 (0)