diff options
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r-- | archaeological_context_records/models.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 21cc507c1..a3219e76a 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -1176,11 +1176,9 @@ class ContextRecord( actions = super().get_extra_actions(request) is_locked = hasattr(self, "is_locked") and self.is_locked(request.user) - can_edit_cr = self.can_do( - request, "archaeological_context_records.change_contextrecord" - ) + can_edit_cr = self.can_change(request) profile = get_current_profile() - can_add_geo = profile.mapping and \ + can_add_geo = can_edit_cr and profile.mapping and \ self.can_do(request, "ishtar_common.add_geovectordata") if can_add_geo: actions.append(self.get_add_geo_action()) |