From e8d9071189fd7c476a6be728a257221ea024bb3e Mon Sep 17 00:00:00 2001
From: Martin Mares <mj@ucw.cz>
Date: Thu, 7 Jan 2021 22:21:07 +0100
Subject: [PATCH] =?UTF-8?q?Opravena=20trapn=C3=A1=20chyba=20v=20kontrole?=
=?UTF-8?q?=20p=C5=99=C3=ADstupu=20k=20zad=C3=A1n=C3=AD=20:)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
mo/web/user.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mo/web/user.py b/mo/web/user.py
index addfb152..4689de6f 100644
--- a/mo/web/user.py
+++ b/mo/web/user.py
@@ -113,7 +113,7 @@ def user_contest(id: int):
def user_task_statement(id: int):
contest = get_contest(id)
- if task_statement_available(contest):
+ if not task_statement_available(contest):
logger.warn(f'Účastník #{g.user.user_id} chce zadání, na které nemá právo')
raise werkzeug.exceptions.Forbidden()
--
GitLab