Skip to content
Snippets Groups Projects
Verified Commit 6b054c9c authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

[Group roles] Check permissions in week view

parent 0b147eea
No related branches found
No related tags found
1 merge request!131Resolve "Add support for assinging group roles"
......@@ -271,7 +271,9 @@ def week_view(
# Group roles
show_group_roles = (
group and request.user.person.preferences["alsijil__group_roles_in_week_view"]
group
and request.user.person.preferences["alsijil__group_roles_in_week_view"]
and request.user.has_perm("alsijil.view_assigned_grouproles", group)
)
if show_group_roles:
group_roles = GroupRole.objects.with_assignments(wanted_week, [group])
......
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