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
Lloyd Meins
AlekSIS-App-Abi
Commits
9f088abb
Verified
Commit
9f088abb
authored
3 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Fix rules semantic
parent
eff4b515
No related branches found
Branches containing commit
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
+2
-2
2 additions, 2 deletions
aleksis/apps/abi/rules.py
with
2 additions
and
2 deletions
aleksis/apps/abi/rules.py
+
2
−
2
View file @
9f088abb
...
@@ -133,12 +133,12 @@ add_perm("abi.view_comments_rule", view_comments_predicate)
...
@@ -133,12 +133,12 @@ add_perm("abi.view_comments_rule", view_comments_predicate)
@predicate
@predicate
def
comment_is_for_person
(
obj
,
user
):
def
comment_is_for_person
(
user
,
obj
):
return
obj
.
person
==
user
.
person
.
abi_person
return
obj
.
person
==
user
.
person
.
abi_person
@predicate
@predicate
def
is_reviewable
(
obj
,
user
):
def
is_reviewable
(
user
,
obj
):
return
obj
.
needs_review
and
not
obj
.
reviewed
return
obj
.
needs_review
and
not
obj
.
reviewed
...
...
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