Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix comment

Roland Geidercd85de258322
diff --git a/wger/core/views/react.py b/wger/core/views/react.py
index 67cf5765b..ccd04f3f8 100644
--- a/wger/core/views/react.py
+++ b/wger/core/views/react.py
@@ -33,9 +33,9 @@ class ReactView(TemplateView):
def dispatch(self, request, *args, **kwargs):
"""
- Can only add contract types in own gym
+ Only logged-in users are allowed to access this page
"""
if self.login_required and not request.user.is_authenticated:
- return HttpResponseForbidden('You are not allowed to access this object')
+ return HttpResponseForbidden('You are not allowed to access this page')
return super().dispatch(request, *args, **kwargs)