code cleanup
Security check for DELETE operations on dossiers - fixes #157