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

Školní garanti jdou přidělovat jen ke školám

Dříve to bylo možné i k obcím, ale příliš často se to dělo omylem.

Closes #318.
parent 481df1bb
No related branches found
No related tags found
No related merge requests found
...@@ -680,7 +680,7 @@ class UserRole(Base): ...@@ -680,7 +680,7 @@ class UserRole(Base):
if (rt == RoleType.garant and not level <= 0 if (rt == RoleType.garant and not level <= 0
or rt == RoleType.garant_kraj and not level == 1 or rt == RoleType.garant_kraj and not level == 1
or rt == RoleType.garant_okres and not level == 2 or rt == RoleType.garant_okres and not level == 2
or rt == RoleType.garant_skola and not level >= 3): or rt == RoleType.garant_skola and not level == 4):
return False return False
return True return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment