SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 4c847609 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Debug and beautify

parent 3b8a5cb3
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,7 @@
<a class="btn btn-sm btn-primary" href="{% url 'helpdesk:queue_create' parent_slug=queue.slug %}"><i class="fa fa-plus"></i> Add a sub-Queue to this Queue</a>
{% endif %}
<hr/>
<div class="card">
<div class="card-header">
Permissions on this Queue instance
......
......@@ -85,7 +85,7 @@ class QueueUpdateView(PermissionRequiredMixin, UpdateView):
groups_perms_dict = get_groups_with_perms(self.object, attach_perms=True)
for group, perms_list in groups_perms_dict.items():
for perm in perms_list:
remove_perm(perm, group, queue)
remove_perm(perm, group, self.object)
assign_perm('can_manage_queue', form.cleaned_data['managing_group'], self.object)
assign_perm('can_handle_queue', form.cleaned_data['managing_group'], self.object)
assign_perm('can_view_queue', form.cleaned_data['managing_group'], self.object)
......
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