Merge pull request #188 from eReuse/feature/#2396

fixing permitions for excel
This commit is contained in:
cayop 2021-11-29 12:40:34 +01:00 committed by GitHub
commit a9d55c6a44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ class DocumentView(DeviceView):
class DevicesDocumentView(DeviceView):
@cache(datetime.timedelta(minutes=1))
def find(self, args: dict):
query = (x for x in self.query(args) if x.owner_id == g.user.id)
query = self.query(args)
return self.generate_post_csv(query)
def generate_post_csv(self, query):