@@ -1706,13 +1706,9 @@ def fct(arg):
1706
1706
# generate the CSV output
1707
1707
self .client ._socket_op (writer .writerow , columns )
1708
1708
# and search
1709
- for itemid in klass .filter (matches , filterspec , sort , group ):
1709
+ filter = klass .filter_with_permissions
1710
+ for itemid in filter (matches , filterspec , sort , group ):
1710
1711
row = []
1711
- # don't put out a row of [hidden] fields if the user has
1712
- # no access to the issue.
1713
- if not self .hasPermission (self .permissionType , itemid = itemid ,
1714
- classname = request .classname ):
1715
- continue
1716
1712
for name in columns :
1717
1713
# check permission for this property on this item
1718
1714
# TODO: Permission filter doesn't work for the 'user' class
@@ -1807,15 +1803,9 @@ def handle(self):
1807
1803
self .client ._socket_op (writer .writerow , columns )
1808
1804
1809
1805
# and search
1810
- for itemid in klass .filter (matches , filterspec , sort , group ):
1806
+ filter = klass .filter_with_permissions
1807
+ for itemid in filter (matches , filterspec , sort , group ):
1811
1808
row = []
1812
- # FIXME should this code raise an exception if an item
1813
- # is included that can't be accessed? Enabling this
1814
- # check will just skip the row for the inaccessible item.
1815
- # This makes it act more like the web interface.
1816
- # if not self.hasPermission(self.permissionType, itemid=itemid,
1817
- # classname=request.classname):
1818
- # continue
1819
1809
for name in columns :
1820
1810
# check permission to view this property on this item
1821
1811
if not self .hasPermission (self .permissionType , itemid = itemid ,
0 commit comments