Skip to content

Commit

Permalink
Allow repeat applications
Browse files Browse the repository at this point in the history
- User should be able to update their study to master's without manual
  intervention
  • Loading branch information
henrikhorluck committed Aug 12, 2024
1 parent 037794a commit 6ff2124
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions apps/dataporten/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ def study(request):
user's groups membership, which can be used to verify eligibility for membership of Online.
"""

# If the user already is a member we can return early. However, if we're in testing, we want to skip the check.
if request.user.is_member and not settings.DATAPORTEN.get("STUDY").get("TESTING"):
messages.info(request, "Du er allerede registrert som medlem.")
return redirect("profiles_active", active_tab="membership")

logger.debug(
f"{request.user} wants to automatically confirm study programme through Dataporten.",
extra={"user": request.user},
Expand Down

0 comments on commit 6ff2124

Please sign in to comment.