Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Commits
62c4b529
Commit
62c4b529
authored
1 year ago
by
Martin Mareš
Browse files
Options
Downloads
Patches
Plain Diff
Zavedeno právo view_doc
parent
7a504cc2
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mo/rights.py
+8
-0
8 additions, 0 deletions
mo/rights.py
with
8 additions
and
0 deletions
mo/rights.py
+
8
−
0
View file @
62c4b529
...
@@ -33,6 +33,7 @@ class Right(Enum):
...
@@ -33,6 +33,7 @@ class Right(Enum):
add_orgs
=
auto
()
add_orgs
=
auto
()
edit_orgs
=
auto
()
edit_orgs
=
auto
()
edit_tex_hacks
=
auto
()
# Nastavovat hacky pro sazbu výsledkovek TeXem
edit_tex_hacks
=
auto
()
# Nastavovat hacky pro sazbu výsledkovek TeXem
view_doc
=
auto
()
# Prohlížet organizátorskou dokumentaci
@dataclass
@dataclass
...
@@ -70,6 +71,7 @@ roles: List[Role] = [
...
@@ -70,6 +71,7 @@ roles: List[Role] = [
Right
.
add_orgs
,
Right
.
add_orgs
,
Right
.
edit_orgs
,
Right
.
edit_orgs
,
Right
.
edit_tex_hacks
,
Right
.
edit_tex_hacks
,
Right
.
view_doc
,
},
},
),
),
Role
(
Role
(
...
@@ -90,6 +92,7 @@ roles: List[Role] = [
...
@@ -90,6 +92,7 @@ roles: List[Role] = [
Right
.
edit_all_users
,
Right
.
edit_all_users
,
Right
.
add_orgs
,
Right
.
add_orgs
,
Right
.
edit_orgs
,
Right
.
edit_orgs
,
Right
.
view_doc
,
},
},
),
),
Role
(
Role
(
...
@@ -110,6 +113,7 @@ roles: List[Role] = [
...
@@ -110,6 +113,7 @@ roles: List[Role] = [
Right
.
edit_all_users
,
Right
.
edit_all_users
,
Right
.
add_orgs
,
Right
.
add_orgs
,
Right
.
edit_orgs
,
Right
.
edit_orgs
,
Right
.
view_doc
,
},
},
),
),
Role
(
Role
(
...
@@ -130,6 +134,7 @@ roles: List[Role] = [
...
@@ -130,6 +134,7 @@ roles: List[Role] = [
Right
.
edit_school_users
,
Right
.
edit_school_users
,
Right
.
add_orgs
,
Right
.
add_orgs
,
Right
.
edit_orgs
,
Right
.
edit_orgs
,
Right
.
view_doc
,
},
},
),
),
Role
(
Role
(
...
@@ -139,6 +144,7 @@ roles: List[Role] = [
...
@@ -139,6 +144,7 @@ roles: List[Role] = [
Right
.
view_submits
,
Right
.
view_submits
,
Right
.
upload_solutions
,
Right
.
upload_solutions
,
Right
.
view_statement
,
Right
.
view_statement
,
Right
.
view_doc
,
},
},
),
),
Role
(
Role
(
...
@@ -150,6 +156,7 @@ roles: List[Role] = [
...
@@ -150,6 +156,7 @@ roles: List[Role] = [
Right
.
upload_feedback
,
Right
.
upload_feedback
,
Right
.
edit_points
,
Right
.
edit_points
,
Right
.
view_statement
,
Right
.
view_statement
,
Right
.
view_doc
,
},
},
),
),
Role
(
Role
(
...
@@ -159,6 +166,7 @@ roles: List[Role] = [
...
@@ -159,6 +166,7 @@ roles: List[Role] = [
Right
.
view_submits
,
Right
.
view_submits
,
Right
.
view_statement
,
Right
.
view_statement
,
Right
.
view_all_users
,
Right
.
view_all_users
,
Right
.
view_doc
,
},
},
),
),
]
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment