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
!461
Bugfix/do not link person if anonymous
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Bugfix/do not link person if anonymous
bugfix/do_not_link_person_if_anonymous
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Nik | Klampfradler
requested to merge
bugfix/do_not_link_person_if_anonymous
into
master
4 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
a8f7c79d
1 commit,
4 years ago
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
aleksis/core/util/middlewares.py
+
1
−
1
Options
@@ -21,7 +21,7 @@ class EnsurePersonMiddleware:
self
.
get_response
=
get_response
def
__call__
(
self
,
request
:
HttpRequest
)
->
HttpResponse
:
if
not
has_person
(
request
):
if
not
has_person
(
request
)
and
not
request
.
user
.
is_anonymous
:
prefs
=
get_site_preferences
()
if
(
prefs
.
get
(
"
account__auto_link_person
"
,
False
)
Loading