X-Git-Url: https://git.tokkee.org/?p=roundup.git;a=blobdiff_plain;f=roundup%2Fcgi%2Ftemplating.py;h=b0eaf022bc34120b2084c9bc433d5d39b7dd5e1a;hp=04cfd76ab6cb3689d59d7ebc108c8d0904f1c3d9;hb=6d0cdd8696df15843e37844a22da1cc4a15ed158;hpb=1184281ead46ac2e354b515a19f91947372398d8 diff --git a/roundup/cgi/templating.py b/roundup/cgi/templating.py index 04cfd76..b0eaf02 100644 --- a/roundup/cgi/templating.py +++ b/roundup/cgi/templating.py @@ -2718,7 +2718,7 @@ function help_window(helpurl, width, height) { """%self.base - def batch(self): + def batch(self, permission='View'): """ Return a batch object for results from the "current search" """ check = self._client.db.security.hasPermission @@ -2744,7 +2744,7 @@ function help_window(helpurl, width, height) { # filter for visibility l = [id for id in klass.filter(matches, filterspec, sort, group) - if check('View', userid, self.classname, itemid=id)] + if check(permission, userid, self.classname, itemid=id)] # return the batch object, using IDs only return Batch(self.client, l, self.pagesize, self.startwith,