Fix small bug in test_widget_deletion
For now, deleting resources is only allowed to superusers
Fix some regresssions affecting WorkspacePreferencesDef
Fix problem with the zIndex property of just added widgets