summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cb6d804)
raw | patch | inline | side by side (parent: cb6d804)
author | schlatterbeck <schlatterbeck@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 21 Dec 2009 21:03:24 +0000 (21:03 +0000) | ||
committer | schlatterbeck <schlatterbeck@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 21 Dec 2009 21:03:24 +0000 (21:03 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4415 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/xmlrpc.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 0da596de9446ec2ecd5e9f83e1cc072f4c1706c6..082f0728f0f6e7f3e291969d0de519ea0bf09385 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
Fixes:
- Proper handling of 'Create' permissions in both mail gateway (earlier
- commit r4405 by Richard) and web interface, this used to check 'Edit'
- permission previously. See
+ commit r4405 by Richard), web interface, and xmlrpc. This used to
+ check 'Edit' permission previously. See
http://thread.gmane.org/gmane.comp.bug-tracking.roundup.devel/5133
Add regression tests for proper handling of 'Create' and 'Edit'
permissions.
diff --git a/roundup/xmlrpc.py b/roundup/xmlrpc.py
index 86c8f992b207e443bacbd101311b16c3b209bae2..b0495d07018aad4def9a220a9abac6f5e15f1b09 100644 (file)
--- a/roundup/xmlrpc.py
+++ b/roundup/xmlrpc.py
raise UsageError, 'you must provide the "%s" property.'%key
for key in props:
- if not self.db.security.hasPermission('Edit', self.db.getuid(), classname,
- property=key):
- raise Unauthorised('Permission to set %s.%s denied'%(classname, key))
+ if not self.db.security.hasPermission('Create', self.db.getuid(),
+ classname, property=key):
+ raise Unauthorised('Permission to create %s.%s denied'%(classname, key))
# do the actual create
try: