Skip to content
Snippets Groups Projects
Commit 3ab1487b authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix typo

parent b44e50af
No related branches found
No related tags found
1 merge request!694Resolve "Improve rule-checking efficiency"
Pipeline #24907 passed with warnings
......@@ -82,7 +82,7 @@ def has_any_object(perm: str, klass):
@predicate(name)
def fn(user: User) -> bool:
ct_perm = get_content_type_by_perm(perm)
# In case a object-related permission with the same ContentType class as the given class
# In case an object-related permission with the same ContentType class as the given class
# is passed, the optimized django-guardian get_objects_for_user function is used.
if ct_perm and ct_perm.model_class() == klass:
return get_objects_for_user(user, perm, klass).exists()
......
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