Skip to content
Snippets Groups Projects
Commit 3af0160b authored by Martin Mareš's avatar Martin Mareš
Browse files

mo.imports: fixup!

parent b77c2836
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !15. Comments created here will be created in the context of that merge request.
......@@ -533,7 +533,10 @@ class JudgeImport(Import):
return
contest = self.obtain_contest(oblast, allow_none=True)
place = contest.place if contest else None
place = contest.place if contest else db.get_root_place()
if not self.check_rights(place):
return self.error(f'K místu "{place.get_code()}" nemáte práva na správu soutěže')
self.add_role(user, place, db.RoleType.opravovatel)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment