summaryrefslogtreecommitdiff
path: root/archaeological_context_records/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2024-10-29 17:50:49 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-02-19 14:43:49 +0100
commit547a20789faf6bbc9979357c7f65cbe61e56ed07 (patch)
tree5ede13492f49434468607950769266d643333d11 /archaeological_context_records/models.py
parentfcc0bb255730d43ec2cff78fb8b948d6322a8b68 (diff)
downloadIshtar-547a20789faf6bbc9979357c7f65cbe61e56ed07.tar.bz2
Ishtar-547a20789faf6bbc9979357c7f65cbe61e56ed07.zip
✨ permissions refactoring: link items to user QA forms
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r--archaeological_context_records/models.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py
index 1bb09717d..21cc507c1 100644
--- a/archaeological_context_records/models.py
+++ b/archaeological_context_records/models.py
@@ -795,6 +795,13 @@ class ContextRecord(
"archaeological_context_records.change_own_contextrecord"
],
)
+ QA_LINK = QuickAction(
+ url="contextrecord-qa-link",
+ icon_class="fa fa-link",
+ text=_("Link to account"),
+ target="many",
+ rights=["ishtaradmin"],
+ )
QA_EDIT = QuickAction(
url="contextrecord-qa-bulk-update",
icon_class="fa fa-pencil",
@@ -807,7 +814,6 @@ class ContextRecord(
)
QUICK_ACTIONS = [
QA_EDIT,
- QA_LOCK,
QuickAction(
url="contextrecord-qa-duplicate",
icon_class="fa fa-clone",
@@ -818,6 +824,8 @@ class ContextRecord(
"archaeological_context_records.change_own_contextrecord"
],
),
+ QA_LOCK,
+ QA_LINK,
]
SERIALIZE_EXCLUDE = MainItem.SERIALIZE_EXCLUDE + ["contextrecord"]
SERIALIZE_PROPERTIES = MainItem.SERIALIZE_PROPERTIES + [