summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index e87e6c5a2..197ac5dcc 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -4210,6 +4210,18 @@ class Document(
True,
)
)
+ can_create_document = self.can_do(request, "add_document")
+ if can_create_document:
+ actions += [
+ (
+ reverse("create-document-source", args=[self.pk]),
+ _("Add document with source parent"),
+ "fa fa-plus",
+ _("Doc./src"),
+ "",
+ False,
+ )
+ ]
return actions
@property