Skip to content
Snippets Groups Projects
Commit d7e346c3 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Apply suggestion to aleksis/core/util/predicates.py

parent 56ca75ed
No related branches found
No related tags found
1 merge request!246Resolve "Add predicate that checks for a preference"
Pipeline #1924 passed with warnings
......@@ -67,7 +67,7 @@ def has_any_object(perm: str, klass):
return fn
def check_site_preference(section: str, pref: str):
def is_site_preference_set(section: str, pref: str):
"""Builds predicate which checks the boolean value of a given site preference"""
name = f"check_site_preference:{section}__{pref}"
......
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