From ba858aff89fdef08d1df715e279aa6656a50c9a5 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 29 Nov 2021 12:15:37 +0100 Subject: [PATCH] fixing permitions for excel --- ereuse_devicehub/resources/documents/documents.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereuse_devicehub/resources/documents/documents.py b/ereuse_devicehub/resources/documents/documents.py index bb7a4834..774d3059 100644 --- a/ereuse_devicehub/resources/documents/documents.py +++ b/ereuse_devicehub/resources/documents/documents.py @@ -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):