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

Zavedeno právo view_doc

parent 7a504cc2
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,7 @@ class Right(Enum):
add_orgs = auto()
edit_orgs = auto()
edit_tex_hacks = auto() # Nastavovat hacky pro sazbu výsledkovek TeXem
view_doc = auto() # Prohlížet organizátorskou dokumentaci
@dataclass
......@@ -70,6 +71,7 @@ roles: List[Role] = [
Right.add_orgs,
Right.edit_orgs,
Right.edit_tex_hacks,
Right.view_doc,
},
),
Role(
......@@ -90,6 +92,7 @@ roles: List[Role] = [
Right.edit_all_users,
Right.add_orgs,
Right.edit_orgs,
Right.view_doc,
},
),
Role(
......@@ -110,6 +113,7 @@ roles: List[Role] = [
Right.edit_all_users,
Right.add_orgs,
Right.edit_orgs,
Right.view_doc,
},
),
Role(
......@@ -130,6 +134,7 @@ roles: List[Role] = [
Right.edit_school_users,
Right.add_orgs,
Right.edit_orgs,
Right.view_doc,
},
),
Role(
......@@ -139,6 +144,7 @@ roles: List[Role] = [
Right.view_submits,
Right.upload_solutions,
Right.view_statement,
Right.view_doc,
},
),
Role(
......@@ -150,6 +156,7 @@ roles: List[Role] = [
Right.upload_feedback,
Right.edit_points,
Right.view_statement,
Right.view_doc,
},
),
Role(
......@@ -159,6 +166,7 @@ roles: List[Role] = [
Right.view_submits,
Right.view_statement,
Right.view_all_users,
Right.view_doc,
},
),
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment