fixed missing team when event is not password protected
This commit is contained in:
parent
7ae36e2cee
commit
6ec1a20e74
|
@ -85,6 +85,8 @@ def event(request, event_slug):
|
|||
player = None
|
||||
if player:
|
||||
IsRegistered = True
|
||||
if not player.team and event_info.team_size > 1:
|
||||
return render(request, 'events/create_team.html', {'event' : event_info, 'logged': True, 'wrongpwd': False, 'registered' : True, 'notexist' : False})
|
||||
if event_info.password:
|
||||
if request.user.is_authenticated:
|
||||
if request.user.is_staff is False:
|
||||
|
|
Loading…
Reference in New Issue