Merged in [16561] from rjsparks@nostrum.com:
Prompt for login for approving slide suggestions instead of just presenting an error. Fixes #2750. - Legacy-Id: 16587 Note: SVN reference [16561] has been migrated to Git commit c80d7072104bbc8bb68281a0dcb442e4971c7dad
This commit is contained in:
parent
de43926eba
commit
4fb9f8ba19
|
@ -2425,7 +2425,8 @@ class ApproveSlidesForm(forms.Form):
|
|||
super(ApproveSlidesForm, self).__init__(*args, **kwargs )
|
||||
if not show_apply_to_all_checkbox:
|
||||
self.fields.pop('apply_to_all')
|
||||
|
||||
|
||||
@login_required
|
||||
def approve_proposed_slides(request, slidesubmission_id, num):
|
||||
submission = get_object_or_404(SlideSubmission,pk=slidesubmission_id)
|
||||
if not submission.session.can_manage_materials(request.user):
|
||||
|
|
Loading…
Reference in a new issue