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
Merge requests
!17
Výsledkovka pomocí mo.web.table
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
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
0
0
Merge request reports
Viewing commit
5301c18e
Prev
Next
Show latest version
1 file
+
2
−
0
Inline
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
View file @ 5523d0f4
Show full file
@@ -11,6 +11,7 @@ import mo
import
mo.config
as
config
import
mo.db
as
db
import
mo.jobs
import
mo.rights
import
mo.users
import
mo.util
@@ -96,6 +97,7 @@ def init_request():
raise
NeedLoginError
()
if
not
(
user
.
is_org
or
user
.
is_admin
):
raise
werkzeug
.
exceptions
.
Forbidden
()
g
.
gatekeeper
=
mo
.
rights
.
Gatekeeper
(
user
)
elif
path
.
startswith
(
'
/user/
'
):
if
not
user
:
raise
NeedLoginError
()
Loading