Univention Bugzilla – Bug 57208
Hook `ext_config_dep_on_role.py` does not support role `teacher_and_staff`.
Last modified: 2024-04-23 10:20:32 CEST
The hook `ext_config_dep_on_role.py` does not support the role `teacher_and_staff`. As we support importing that role generally, this hook should also work with this role. The test `90_ucsschool/246_import_user_config_pyhook.py` fails while loading the configuration, but passes anyway: ``` 2024-04-03 15:33:19 INFO import_pyhook.call_hooks:165 Running ImportPyHookLoader post_config_files_read hook <bound method ExtendConfigByRole.post_config_files_read of <test246_config_modification.ExtendConfigByRole object at 0x7f598426a780>> ... 2024-04-03 15:33:19 ERROR test246_config_modification.preconditions_met:127 Exiting hook: unknown role 'teacher_and_staff'. ``` We need to add `teacher_and_staff` to the supported roles of the hook and review/rework the test.