Skip to content

Commit 67e972a

Browse files
author
Richard Jones
committed
fix [SF#700483]
1 parent 32820f5 commit 67e972a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roundup/cgi/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.103 2003-03-07 22:46:59 kedder Exp $
1+
# $Id: client.py,v 1.104 2003-03-09 22:57:47 richard Exp $
22

33
__doc__ = """
44
WWW request handler (also used in the stand-alone server).
@@ -1149,7 +1149,7 @@ def _changenode(self, cn, nodeid, props):
11491149
'''
11501150
# check for permission
11511151
if not self.editItemPermission(props):
1152-
raise PermissionError, 'You do not have permission to edit %s'%cn
1152+
raise Unauthorised, 'You do not have permission to edit %s'%cn
11531153

11541154
# make the changes
11551155
cl = self.db.classes[cn]
@@ -1160,7 +1160,7 @@ def _createnode(self, cn, props):
11601160
'''
11611161
# check for permission
11621162
if not self.newItemPermission(props):
1163-
raise PermissionError, 'You do not have permission to create %s'%cn
1163+
raise Unauthorised, 'You do not have permission to create %s'%cn
11641164

11651165
# create the node and return its id
11661166
cl = self.db.classes[cn]

0 commit comments

Comments
 (0)