Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Abi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
magicfelix
AlekSIS-App-Abi
Commits
eff4b515
Verified
Commit
eff4b515
authored
3 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Fix is_own_profile predicate
parent
f55a7100
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/abi/rules.py
+3
-1
3 additions, 1 deletion
aleksis/apps/abi/rules.py
with
3 additions
and
1 deletion
aleksis/apps/abi/rules.py
+
3
−
1
View file @
eff4b515
...
@@ -16,7 +16,9 @@ def has_abi_person(user):
...
@@ -16,7 +16,9 @@ def has_abi_person(user):
@predicate
@predicate
def
is_own_profile
(
user
,
obj
):
def
is_own_profile
(
user
,
obj
):
return
user
.
person
.
abi_person
==
obj
.
profile
.
person
if
not
obj
:
return
True
return
user
.
person
==
obj
.
person
.
person
# View abi person list
# View abi person list
...
...
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