setting user required in team upload
This commit is contained in:
@@ -518,7 +518,7 @@ def getrequestplanrower(request,rowerid=0,userid=0,notpermanent=False):
|
||||
|
||||
def getrower(user):
|
||||
try:
|
||||
if user.is_anonymous:
|
||||
if user is None or user.is_anonymous:
|
||||
return None
|
||||
except AttributeError:
|
||||
if User.objects.get(id=user).is_anonymous:
|
||||
|
||||
Reference in New Issue
Block a user