|
75 | 75 | from ietf.group.mails import email_admin_re_charter, email_personnel_change, email_comment |
76 | 76 | from ietf.group.models import ( Group, Role, GroupEvent, GroupStateTransitions, |
77 | 77 | ChangeStateGroupEvent, GroupFeatures ) |
78 | | -from ietf.group.utils import (get_charter_text, can_manage_group_type, |
| 78 | +from ietf.group.utils import (get_charter_text, can_manage_all_groups_of_type, |
79 | 79 | milestone_reviewer_for_group_type, can_provide_status_update, |
80 | 80 | can_manage_materials, |
81 | 81 | construct_group_menu_context, get_group_materials, |
@@ -392,7 +392,7 @@ def chartering_groups(request): |
392 | 392 |
|
393 | 393 | for t in group_types: |
394 | 394 | t.chartering_groups = Group.objects.filter(type=t, charter__states__in=charter_states,state_id__in=('active','bof','proposed','dormant')).select_related("state", "charter").order_by("acronym") |
395 | | - t.can_manage = can_manage_group_type(request.user, None, t.slug) |
| 395 | + t.can_manage = can_manage_all_groups_of_type(request.user, None, t.slug) |
396 | 396 |
|
397 | 397 | for g in t.chartering_groups: |
398 | 398 | g.chartering_type = get_chartering_type(g.charter) |
@@ -523,7 +523,7 @@ def group_about(request, acronym, group_type=None): |
523 | 523 | if group.state_id == "conclude": |
524 | 524 | e = group.latest_event(type='closing_note') |
525 | 525 |
|
526 | | - can_manage = can_manage_group_type(request.user, group) |
| 526 | + can_manage = can_manage_all_groups_of_type(request.user, group) |
527 | 527 | charter_submit_url = "" |
528 | 528 | if group.features.has_chartering_process: |
529 | 529 | charter_submit_url = urlreverse('ietf.doc.views_charter.submit', kwargs={ "name": charter_name_for_group(group) }) |
@@ -1077,7 +1077,7 @@ def conclude(request, acronym, group_type=None): |
1077 | 1077 | """Request the closing of group, prompting for instructions.""" |
1078 | 1078 | group = get_group_or_404(acronym, group_type) |
1079 | 1079 |
|
1080 | | - if not can_manage_group_type(request.user, group): |
| 1080 | + if not can_manage_all_groups_of_type(request.user, group): |
1081 | 1081 | permission_denied(request, "You don't have permission to access this view") |
1082 | 1082 |
|
1083 | 1083 | if request.method == 'POST': |
|
0 commit comments