Skip to content

Commit 6e6a2a1

Browse files
author
Richard Jones
committed
fix security check in mailgw [SF#1442145]
1 parent 9d4fbdd commit 6e6a2a1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Fixed:
2020
- fix saving of queries (sf bug 1436169)
2121
- fix "Adding a new constrained field to the classic schema" example in docs
2222
(sf bug 1433118)
23+
- fix security check in mailgw (sf bug 1442145)
2324

2425

2526
2006-02-10 1.1.0

roundup/mailgw.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class node. Any parts of other types are each stored in separate files
7272
an exception, the original message is bounced back to the sender with the
7373
explanatory message given in the exception.
7474
75-
$Id: mailgw.py,v 1.173 2006-03-02 23:45:22 richard Exp $
75+
$Id: mailgw.py,v 1.174 2006-03-03 00:13:20 richard Exp $
7676
"""
7777
__docformat__ = 'restructuredtext'
7878

@@ -851,7 +851,8 @@ def handle_message(self, message):
851851

852852
# make sure they're allowed to edit or create this class of information
853853
if nodeid:
854-
if not self.db.security.hasPermission('Edit', author, classname):
854+
if not self.db.security.hasPermission('Edit', author, classname,
855+
itemid=nodeid):
855856
raise Unauthorized, 'You are not permitted to '\
856857
'edit %s.'%classname
857858
else:

0 commit comments

Comments
 (0)