Univention Bugzilla – Bug 49859
Add UMC call to delete exams
Last modified: 2019-07-26 14:03:51 CEST
The UMC module needs a call to delete exams. The command should contain an array 'exams' containing all exam names that are to be deleted. Only unstarted exams can be deleted Domain and school admins can delete all (unstarted) exams Teachers can only delete their own unstarted exams
Implemented on fb/4.4/49861 (including changelog&advisory)
Two small things: It looks like you left a few unnecessary decorators? See the attached patch :) "Domain Admins" is hardcoded, that might break in Ad connector environments. The patch uses the method used by "60univention-ldap-server_acl-slave". To be honest I'm not sure if the ucr variable "groups/default/domainadmins" would be set on slave in that scenario, but afaik that's the only way. Otherwise it looks good :)
Created attachment 10131 [details] Proposed patch
Aye you are right. I applied the patch Package: ucs-school-umc-exam Version: 9.0.1-13A~4.4.0.201907240848 Branch: ucs_4.4-0 Scope: ucs-school-4.4
What I tested: Deletion without saml -> OK Deletion with saml -> OK Deletion as Administrator -> OK Running exams can't be deleted -> OK Teacher can only delete own exams -> OK YAML -> OK
4.4 v3 released