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

Re-introduce missing preference

parent fa0bace5
No related branches found
No related tags found
1 merge request!431Resolve "NotFoundInRegistry: No such preference in GlobalPreferenceRegistry with section=alsijil and name=inherit_privileges_f..."
Pipeline #193662 failed
...@@ -14,6 +14,19 @@ from aleksis.core.registries import site_preferences_registry ...@@ -14,6 +14,19 @@ from aleksis.core.registries import site_preferences_registry
alsijil = Section("alsijil", verbose_name=_("Class register")) alsijil = Section("alsijil", verbose_name=_("Class register"))
@site_preferences_registry.register
class InheritPrivilegesFromParentGroup(BooleanPreference):
section = alsijil
name = "inherit_privileges_from_parent_group"
default = True
verbose_name = _(
"Grant the owner of a parent group the same privileges "
"as the owners of the respective child groups "
"in regard to group role management and generating "
"full printouts of class registers."
)
@site_preferences_registry.register @site_preferences_registry.register
class GroupOwnersCanAssignRolesToParents(BooleanPreference): class GroupOwnersCanAssignRolesToParents(BooleanPreference):
section = alsijil section = alsijil
......
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