Skip to content
Snippets Groups Projects
Commit bb6e6196 authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Give the staff group access to the view message log on submissions.

parent 47d86afc
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<a class="tab__item" href="#activity-feed" data-tab="tab-3"> <a class="tab__item" href="#activity-feed" data-tab="tab-3">
Activity Feed Activity Feed
</a> </a>
{% if request.user.is_superuser %} {% if request.user.is_apply_staff %}
<a class="tab__item tab__item--right js-tabs-off" href="{% url 'admin:activity_event_changelist' %}?submission__id={{ object.id }}"> <a class="tab__item tab__item--right js-tabs-off" href="{% url 'admin:activity_event_changelist' %}?submission__id={{ object.id }}">
View message log View message log
</a> </a>
......
# Generated by Django 2.0.9 on 2019-01-10 09:28
from django.contrib.auth.models import Group, Permission
from django.db import migrations
from opentech.apply.users.groups import STAFF_GROUP_NAME
class Migration(migrations.Migration):
def add_permissions(apps, schema_editor):
staff_group = Group.objects.get(name=STAFF_GROUP_NAME)
staff_add_perm = Permission.objects.get(name='Can change event')
staff_group.permissions.add(staff_add_perm)
dependencies = [
('users', '0007_user_slack'),
]
operations = [
migrations.RunPython(add_permissions)
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment