Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Merge requests
!1692
Something went wrong on our end
Fix security issue
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix security issue
yuha/AlekSIS-Core:master
into
master
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
Jonathan Weth
requested to merge
yuha/AlekSIS-Core:master
into
master
1 month ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
Close
#1180 (closed)
0
0
Merge request reports
Viewing commit
adbca0d3
Show latest version
2 files
+
4
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
Verified
adbca0d3
Deny access to PDF files for unauthenticated users
· adbca0d3
Jonathan Weth
authored
1 month ago
aleksis/core/schema/__init__.py
+
3
−
3
Options
@@ -246,9 +246,9 @@ class Query(graphene.ObjectType):
def
resolve_pdf_by_id
(
root
,
info
,
id
,
**
kwargs
):
# noqa
pdf_file
=
PDFFile
.
objects
.
get
(
pk
=
id
)
if
has_person
(
info
.
context
)
and
info
.
context
.
user
.
person
!
=
pdf_file
.
person
:
return
Non
e
return
pdf_fil
e
if
has_person
(
info
.
context
)
and
info
.
context
.
user
.
person
=
=
pdf_file
.
person
:
return
pdf_fil
e
return
Non
e
def
resolve_search_snippets
(
root
,
info
,
query
,
limit
=-
1
,
**
kwargs
):
indexed_models
=
UnifiedIndex
().
get_indexed_models
()
Loading