Merge branch 'hotfix/v8.26'
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user