From ce71f7f286819ee1399fef5f1819f9cc812149a6 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 13 Mar 2025 13:30:02 +0100 Subject: ✨ sheets: refactor document listing - add edit and unlink actions (refs #6221) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/models.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index ae0656c6d..6a793e326 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -2480,6 +2480,10 @@ class Area(HierarchicalType, DocumentItem, MainItem): return self.label return "{} ({})".format(self.label, self.reference) + def can_edit(self, request): + print("TODO: define specific permissions for areas") + return False + @classmethod def get_or_create_by_towns(cls, towns, get_geo=False): if hasattr(towns, "all"): # queryset -- cgit v1.2.3