forked from mirrors/bookwyrm
Fixes checking goal perms
This commit is contained in:
parent
56bf8d923f
commit
99c1a670f4
1 changed files with 2 additions and 1 deletions
|
@ -31,6 +31,7 @@ class Goal(View):
|
||||||
if not goal and year != timezone.now().year:
|
if not goal and year != timezone.now().year:
|
||||||
return redirect("user-goal", username, current_year)
|
return redirect("user-goal", username, current_year)
|
||||||
|
|
||||||
|
if goal:
|
||||||
goal.raise_visible_to_user(request.user)
|
goal.raise_visible_to_user(request.user)
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
|
|
Loading…
Reference in a new issue