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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Merge requests
!17
Výsledkovka pomocí mo.web.table
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Výsledkovka pomocí mo.web.table
jirka/table
into
master
Overview
0
Commits
23
Changes
1
Closed
Jiří Setnička
requested to merge
jirka/table
into
master
4 years ago
Overview
0
Commits
23
Changes
1
Expand
0
0
Merge request reports
Viewing commit
5301c18e
Prev
Next
Show latest version
1 file
+
2
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
5301c18e
Práva: Každý webový request v /org/ má svého dveřníka
· 5301c18e
Martin Mareš
authored
4 years ago
mo/web/__init__.py
+
2
−
0
Options
@@ -11,6 +11,7 @@ import mo
@@ -11,6 +11,7 @@ import mo
import
mo.config
as
config
import
mo.config
as
config
import
mo.db
as
db
import
mo.db
as
db
import
mo.jobs
import
mo.jobs
import
mo.rights
import
mo.users
import
mo.users
import
mo.util
import
mo.util
@@ -96,6 +97,7 @@ def init_request():
@@ -96,6 +97,7 @@ def init_request():
raise
NeedLoginError
()
raise
NeedLoginError
()
if
not
(
user
.
is_org
or
user
.
is_admin
):
if
not
(
user
.
is_org
or
user
.
is_admin
):
raise
werkzeug
.
exceptions
.
Forbidden
()
raise
werkzeug
.
exceptions
.
Forbidden
()
g
.
gatekeeper
=
mo
.
rights
.
Gatekeeper
(
user
)
elif
path
.
startswith
(
'
/user/
'
):
elif
path
.
startswith
(
'
/user/
'
):
if
not
user
:
if
not
user
:
raise
NeedLoginError
()
raise
NeedLoginError
()
Loading