Skip to content

Commit e03881d

Browse files
author
Alexander Smishlajev
committed
fix bug in menu() permission filter [SF#1444440]
1 parent 619d6f8 commit e03881d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ are given with the most recent entry first.
44
2006-??-?? 1.1.2
55
Fixed:
66
- progress display in roundup-admin reindex
7+
- bug in menu() permission filter (sf bug 1444440)
78

89

910
2006-03-03 1.1.1

roundup/cgi/templating.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,7 +1762,7 @@ def menu(self, size=None, height=None, showid=0, additional=[], value=None,
17621762
options = [opt
17631763
for opt in linkcl.filter(None, conditions, sort_on, (None, None))
17641764
if self._db.security.hasPermission("View", self._client.userid,
1765-
linkcl.classname, itemid=id)]
1765+
linkcl.classname, itemid=opt)]
17661766

17671767
# make sure we list the current value if it's retired
17681768
if value and value not in options:
@@ -1948,7 +1948,7 @@ def menu(self, size=None, height=None, showid=0, additional=[],
19481948
options = [opt
19491949
for opt in linkcl.filter(None, conditions, sort_on)
19501950
if self._db.security.hasPermission("View", self._client.userid,
1951-
linkcl.classname, itemid=id)]
1951+
linkcl.classname, itemid=opt)]
19521952
height = height or min(len(options), 7)
19531953
l = ['<select multiple name="%s" size="%s">'%(self._formname, height)]
19541954
k = linkcl.labelprop(1)

0 commit comments

Comments
 (0)