Private
Public Access
1
0

Merge branch 'hotfix/v8.26'

This commit is contained in:
Sander Roosendaal
2018-10-25 13:27:58 +02:00

View File

@@ -247,8 +247,12 @@ def getrequestrower(request,rowerid=0,userid=0,notpermanent=False):
def getrower(user):
if user.is_anonymous():
return None
try:
if user.is_anonymous():
return None
except AttributeError:
if User.objects.get(id=user).is_anonymous():
return None
try:
r = Rower.objects.get(user=user)
except Rower.DoesNotExist: