Skip to content

Commit 310ac81

Browse files
committed
Adding in missing check for bot token
1 parent fa67691 commit 310ac81

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

hackathon/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,8 @@ def view_hackathon(request, hackathon_id):
360360
paginator = Paginator(teams, 3)
361361
page = request.GET.get('page')
362362
paged_teams = paginator.get_page(page)
363-
create_private_channel = (settings.SLACK_ENABLED and settings.SLACK_ADMIN_TOKEN)
363+
create_private_channel = (settings.SLACK_ENABLED and settings.SLACK_BOT_TOKEN
364+
and settings.SLACK_ADMIN_TOKEN)
364365

365366
context = {
366367
'hackathon': hackathon,

0 commit comments

Comments
 (0)