diff --git a/src/c3nav/editor/templates/editor/changeset.html b/src/c3nav/editor/templates/editor/changeset.html index a963ff22..28664ca8 100644 --- a/src/c3nav/editor/templates/editor/changeset.html +++ b/src/c3nav/editor/templates/editor/changeset.html @@ -86,7 +86,7 @@ - {% if obj.edit_url %} + {% if obj.edit_url and active %} {% trans 'Edit' %} diff --git a/src/c3nav/editor/views/changes.py b/src/c3nav/editor/views/changes.py index 6be5bc87..c69bb5bb 100644 --- a/src/c3nav/editor/views/changes.py +++ b/src/c3nav/editor/views/changes.py @@ -215,7 +215,7 @@ def changeset_detail(request, pk): obj_still_exists = pk not in changeset.deleted_existing.get(obj.__class__, ()) edit_url = None - if obj_still_exists and active and can_edit and not isinstance(obj, LocationRedirect): + if obj_still_exists and can_edit and not isinstance(obj, LocationRedirect): reverse_kwargs = {'pk': obj.pk} if hasattr(obj, 'level_id'): reverse_kwargs['level'] = obj.level_id