Skip to content
Snippets Groups Projects
Verified Commit df357a62 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Fix call of property

parent ef75d02b
No related branches found
No related tags found
1 merge request!49Resolve "Add rules and permissions"
Pipeline #3514 passed
......@@ -218,4 +218,4 @@ def has_any_object_absence(user: User) -> bool:
@predicate
def is_teacher(user: User, obj: Person) -> bool:
"""Predicate which checks if the provided object is a teacher."""
return user.person.is_teacher()
return user.person.is_teacher
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment