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
Commits
919e8759
Verified
Commit
919e8759
authored
5 months ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Deny access to PDF files for unauthenticated users
(cherry picked from commit
adbca0d3
)
parent
067c4aa0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.rst
+9
-0
9 additions, 0 deletions
CHANGELOG.rst
aleksis/core/schema/__init__.py
+3
-3
3 additions, 3 deletions
aleksis/core/schema/__init__.py
with
12 additions
and
3 deletions
CHANGELOG.rst
+
9
−
0
View file @
919e8759
...
@@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file.
...
@@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file.
The format is based on `Keep a Changelog`_,
The format is based on `Keep a Changelog`_,
and this project adheres to `Semantic Versioning`_.
and this project adheres to `Semantic Versioning`_.
`3.2.2`_ - 2025-01-18
---------------------
Fixed
~~~~~
* Not-logged in users were able to access all PDF files.
`3.2.1`_ - 2024-06-27
`3.2.1`_ - 2024-06-27
---------------------
---------------------
...
@@ -1255,3 +1263,4 @@ Fixed
...
@@ -1255,3 +1263,4 @@ Fixed
.. _3.1.5: https://edugit.org/AlekSIS/official/AlekSIS-Core/-/tags/3.1.5
.. _3.1.5: https://edugit.org/AlekSIS/official/AlekSIS-Core/-/tags/3.1.5
.. _3.2.0: https://edugit.org/AlekSIS/official/AlekSIS-Core/-/tags/3.2.0
.. _3.2.0: https://edugit.org/AlekSIS/official/AlekSIS-Core/-/tags/3.2.0
.. _3.2.1: https://edugit.org/AlekSIS/official/AlekSIS-Core/-/tags/3.2.1
.. _3.2.1: https://edugit.org/AlekSIS/official/AlekSIS-Core/-/tags/3.2.1
.. _3.2.2: https://edugit.org/AlekSIS/official/AlekSIS-Core/-/tags/3.2.2
This diff is collapsed.
Click to expand it.
aleksis/core/schema/__init__.py
+
3
−
3
View file @
919e8759
...
@@ -131,9 +131,9 @@ class Query(graphene.ObjectType):
...
@@ -131,9 +131,9 @@ class Query(graphene.ObjectType):
def
resolve_pdf_by_id
(
root
,
info
,
id
,
**
kwargs
):
# noqa
def
resolve_pdf_by_id
(
root
,
info
,
id
,
**
kwargs
):
# noqa
pdf_file
=
PDFFile
.
objects
.
get
(
pk
=
id
)
pdf_file
=
PDFFile
.
objects
.
get
(
pk
=
id
)
if
has_person
(
info
.
context
)
and
not
info
.
context
.
user
.
person
==
pdf_file
.
person
:
if
has_person
(
info
.
context
)
and
info
.
context
.
user
.
person
==
pdf_file
.
person
:
r
aise
PermissionDenied
()
r
eturn
pdf_file
return
pdf_fil
e
return
Non
e
def
resolve_search_snippets
(
root
,
info
,
query
,
limit
=-
1
,
**
kwargs
):
def
resolve_search_snippets
(
root
,
info
,
query
,
limit
=-
1
,
**
kwargs
):
indexed_models
=
UnifiedIndex
().
get_indexed_models
()
indexed_models
=
UnifiedIndex
().
get_indexed_models
()
...
...
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