Skip to content
Snippets Groups Projects
Unverified Commit 9ba0495a authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #828 from OpenTechFund/feature/view-message-log-access-staff

Give the staff group access to the view message log on submissions.
parents 089cc761 bb6e6196
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