Univention Bugzilla – Bug 42349
Hide roles in wizards
Last modified: 2017-03-21 12:35:54 CET
In UCS@school we have four roles: students, teachers, teachers and staff, staff. They are visible in all wizards all the time although the specific environment might not use every role. It should therefore be possible to hide unused roles because unused roles might confuse people. See also Bug #41387.
It is now possible to specify a commaseparated list of UCS@school user roles to disable in UMC module "Users (schools)". UCR variable: ucsschool/wizards/schoolwizards/users/roles/disabled Possible values: student,teacher,staff,teachersAndStaff Example: disable staff role by setting the following UCR variable: ucr set \ ucsschool/wizards/schoolwizards/users/roles/disabled=staff,teachersAndStaff Package: ucs-school-umc-wizards Version: 8.0.1-1.152.201703021300 Branch: ucs_4.1-0 Scope: ucs-school-4.1r2 ucs-school-umc-wizards.yaml: r77238 | Bug #42349: hide disabled roles in search form of schoolwizards/users ucs-school-umc-wizards (8.0.1-1): r77238 | Bug #42349: hide disabled roles in search form of schoolwizards/users
The static value list in javascript has been replaced by a function in schoolwizards/utils.js that filters a static list and removes all values that are listed in the UCR variable mentioned above. The UCR variable is only read once, so the UMC might have to be reloaded in browser to activate UCR variable changes.
Sorting of the new filtered values has been disabled (→ same haviour as before). ucs-school-umc-wizards.yaml: r77257 | Bug #42349: updated advisory r77254 | Bug #42349, 41387: updated advisory ucs-school-umc-wizards (8.0.1-2): r77253 | Bug #42349: updated copyright r77248 | Bug #42349: fix regression of last commit: disable sorting of user roles Package: ucs-school-umc-wizards Version: 8.0.1-2.153.201703021519 Branch: ucs_4.1-0 Scope: ucs-school-4.1r2
OK: advisory OK: behavioral change is as desired: after setting the UCRV restarting UMCd and logging in again, no new users of the disabled types were found in the "add user" dialog. Existing users of the disabled types are still displayed. As discussed, in this release the "manage workgroups" module has not been modified. It still displays disabled user types in its dialog window.
Please remove "/wizards/" from ucsschool/wizards/schoolwizards/users/roles/disabled. Other related UCRV names start with ucsschool/<module>/ like ucsschool/csvimport, ucsschool/workgroup, ucsschool/passwordreset.
OK - I see now, that while the ^ucsschool/ namespace is used inconsistently directly below it, in the next level (modules) it is consistent. There are multiple UCRVs below ucsschool/wizards/schoolwizards/.
All fine then.
UCS@school 4.1 R2 v10 has been released. http://docs.software-univention.de/changelog-ucsschool-4.1R2v10-de.html If this error occurs again, please clone this bug.