@@ -1757,7 +1757,10 @@ def menu(self, size=None, height=None, showid=0, additional=[], value=None,
17571757 else :
17581758 sort_on = ('+' , find_sort_key (linkcl ))
17591759
1760- options = linkcl .filter (None , conditions , sort_on , (None , None ))
1760+ options = [opt
1761+ for opt in linkcl .filter (None , conditions , sort_on , (None , None ))
1762+ if self ._db .security .hasPermission ("View" , self ._client .userid ,
1763+ linkcl .classname , itemid = id )]
17611764
17621765 # make sure we list the current value if it's retired
17631766 if value and value not in options :
@@ -1940,7 +1943,10 @@ def menu(self, size=None, height=None, showid=0, additional=[],
19401943 else :
19411944 sort_on = ('+' , find_sort_key (linkcl ))
19421945
1943- options = linkcl .filter (None , conditions , sort_on )
1946+ options = [opt
1947+ for opt in linkcl .filter (None , conditions , sort_on )
1948+ if self ._db .security .hasPermission ("View" , self ._client .userid ,
1949+ linkcl .classname , itemid = id )]
19441950 height = height or min (len (options ), 7 )
19451951 l = ['<select multiple name="%s" size="%s">' % (self ._formname , height )]
19461952 k = linkcl .labelprop (1 )
0 commit comments