Adding lot permissions to LotsDocumentView

This commit is contained in:
nad 2020-08-18 21:02:54 +02:00
parent b61398ee59
commit 306bad966b
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ class DevicesDocumentView(DeviceView):
class LotsDocumentView(LotView):
def find(self, args: dict):
query = self.query(args)
query = (x for x in self.query(args) if x.owner_id == g.user.id)
return self.generate_lots_csv(query)
def generate_lots_csv(self, query):