diff options
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 54a44999c..8dd6568b8 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -278,11 +278,19 @@ class ArchaeologicalSite(DocumentItem, BaseHistorizedItem, QRCodeItem, DOWN_MODEL_UPDATE = ["context_records"] QA_LOCK = QuickAction( - url="operation-qa-lock", icon_class="fa fa-lock", + url="site-qa-lock", icon_class="fa fa-lock", text=_(u"Lock/Unlock"), target="many", - rights=['change_operation', 'change_own_operation'] + rights=['change_archaeologicalsite', + 'change_own_archaeologicalsite'] + ) + QA_EDIT = QuickAction( + url="site-qa-bulk-update", icon_class="fa fa-pencil", + text=_(u"Bulk update"), target="many", + rights=['change_archaeologicalsite', + 'change_own_archaeologicalsite'] ) QUICK_ACTIONS = [ + QA_EDIT, QA_LOCK, QuickAction( url="site-qa-duplicate", icon_class="fa fa-clone", @@ -946,6 +954,7 @@ class Operation(ClosedItem, DocumentItem, BaseHistorizedItem, QRCodeItem, QA_EDIT = QuickAction( url="operation-qa-bulk-update", icon_class="fa fa-pencil", text=_(u"Bulk update"), target="many", + rights=['change_operation', 'change_own_operation'] ) QA_LOCK = QuickAction( url="operation-qa-lock", icon_class="fa fa-lock", |