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
!1268
Resolve "Provide URL representation for every object"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Provide URL representation for every object"
871-provide-url-representation-for-every-object
into
master
Overview
0
Commits
14
Pipelines
25
Changes
1
Merged
Jonathan Weth
requested to merge
871-provide-url-representation-for-every-object
into
master
1 year ago
Overview
0
Commits
14
Pipelines
25
Changes
1
Expand
Closes
#871 (closed)
0
0
Merge request reports
Viewing commit
d185d4cf
Prev
Next
Show latest version
1 file
+
6
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Verified
d185d4cf
Retrieve object from authenticator
· d185d4cf
Nik | Klampfradler
authored
1 year ago
aleksis/core/views.py
+
6
−
1
Options
@@ -1608,7 +1608,12 @@ class ObjectRepresentationView(View):
authenticator_class
=
ObjectAuthenticator
.
get_object_by_name
(
authenticator
)
if
not
authenticator_class
:
continue
if
authenticator_class
().
authenticate
(
request
,
self
.
object
):
obj
=
authenticator_class
().
authenticate
(
request
,
self
.
object
)
if
obj
:
if
self
.
object
is
None
:
self
.
object
=
obj
elif
obj
!=
self
.
object
:
raise
BadRequest
(
"
Ambiguous objects identified
"
)
return
True
raise
PermissionDenied
()
Loading