diff --git a/pinaxcon/templates/dashboard.html b/pinaxcon/templates/dashboard.html index dcfeb020..579899d1 100644 --- a/pinaxcon/templates/dashboard.html +++ b/pinaxcon/templates/dashboard.html @@ -256,6 +256,14 @@
  • Reviewed by you
  • Not Reviewed by you
  • + {% if section in manage_sections %} + + {% endif %} diff --git a/vendor/symposion/proposals/views.py b/vendor/symposion/proposals/views.py index 051a794b..925ad17c 100644 --- a/vendor/symposion/proposals/views.py +++ b/vendor/symposion/proposals/views.py @@ -40,7 +40,7 @@ def proposal_submit(request): messages.info(request, _("To submit a proposal, please " "log in and create a speaker profile " "via the dashboard.".format(settings.LOGIN_URL))) - return redirect("home") # @@@ unauth'd speaker info page? + return redirect("dashboard") # @@@ unauth'd speaker info page? else: try: request.user.speaker_profile diff --git a/vendor/symposion/reviews/context_processors.py b/vendor/symposion/reviews/context_processors.py index 02850f15..7b164896 100644 --- a/vendor/symposion/reviews/context_processors.py +++ b/vendor/symposion/reviews/context_processors.py @@ -3,9 +3,14 @@ from symposion.proposals.models import ProposalSection def reviews(request): sections = [] + manage_sections = {} for section in ProposalSection.objects.all(): if request.user.has_perm("reviews.can_review_%s" % section.section.slug): sections.append(section) + if request.user.has_perm("reviews.can_manage_%s" % section.section.slug): + manage_sections.setdefault(section, []).append return { "review_sections": sections, + "manage_sections": manage_sections } +