Skip to content
Snippets Groups Projects
Commit 886ba684 authored by Alexander Pace's avatar Alexander Pace
Browse files

view permission check

parent b1f92e01
No related branches found
No related tags found
1 merge request!108RRT view for advocates
......@@ -117,7 +117,7 @@ class AdvocateSignoffMixin(ContextMixin):
rrt_group_filter = Q(name=settings.RRT_MEMBERS_GROUP)
signoff_group = self.request.user.groups.filter(em_group_filter |
rrt_group_filter)
rrt_group_filter).first()
# Update context with signoff_authorized bool
context['advocate_signoff_authorized'] = signoff_group is not None
......
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