Skip to content

Commit 099b509

Browse files
author
Richard Jones
committed
fix invocation of hasPermission from templating code [SF#1224172]
1 parent da3143e commit 099b509

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Fixed:
1818
- use translation for boolean property rendering (sf bug 1225152)
1919
- enabled disabling of REMOTE_USER for when it's not a valid username (sf
2020
bug 1190187)
21+
- fix invocation of hasPermission from templating code (sf bug 1224172)
2122

2223

2324
2005-05-02 0.8.3

doc/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ Dougal Scott,
135135
Stefan Seefeld,
136136
Jouni K Sepp�nen,
137137
Jeffrey P Shell,
138+
Dan Shidlovsky,
138139
Joel Shprentz,
139140
Terrel Shumway,
140141
Emil Sit,

roundup/cgi/templating.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ def hasPermission(self, permission, classname=_marker,
10561056
if classname is self._marker:
10571057
classname = self._client.classname
10581058
return self._client.db.security.hasPermission(permission,
1059-
self._nodeid, classname)
1059+
self._nodeid, classname, property, itemid)
10601060

10611061
def HTMLItem(client, classname, nodeid, anonymous=0):
10621062
if classname == 'user':

0 commit comments

Comments
 (0)