1
0
Fork 1
mirror of https://github.com/bookwyrm-social/bookwyrm.git synced 2025-04-24 03:04:10 +00:00

Fixes checking goal perms

This commit is contained in:
Mouse Reeve 2021-09-27 17:52:20 -07:00
parent 56bf8d923f
commit 99c1a670f4

View file

@ -31,7 +31,8 @@ class Goal(View):
if not goal and year != timezone.now().year:
return redirect("user-goal", username, current_year)
goal.raise_visible_to_user(request.user)
if goal:
goal.raise_visible_to_user(request.user)
data = {
"goal_form": forms.GoalForm(instance=goal),