Skip to content

Commit

Permalink
Merge pull request #4043 from SaptakS/fix-invite-nologin
Browse files Browse the repository at this point in the history
Require login for invite code URL
  • Loading branch information
thelostone-mc authored Mar 26, 2019
2 parents f1240aa + c45c762 commit d2612c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

from django.conf import settings
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from django.core.exceptions import PermissionDenied
from django.core.paginator import Paginator
Expand Down Expand Up @@ -1118,6 +1119,7 @@ def helper_handle_approvals(request, bounty):
messages.warning(request, _('Only the funder of this bounty may perform this action.'))


@login_required
def bounty_invite_url(request, invitecode):
"""Decode the bounty details and redirect to correct bounty
Expand Down

0 comments on commit d2612c0

Please sign in to comment.