Add debug information.
parent
8a5bd2de94
commit
6f19323292
|
@ -454,9 +454,15 @@ public class MindmapController extends BaseController {
|
||||||
public void batchDelete(@RequestParam() String ids) throws IOException, WiseMappingException {
|
public void batchDelete(@RequestParam() String ids) throws IOException, WiseMappingException {
|
||||||
final User user = Utils.getUser();
|
final User user = Utils.getUser();
|
||||||
final String[] mapsIds = ids.split(",");
|
final String[] mapsIds = ids.split(",");
|
||||||
for (final String mapId : mapsIds) {
|
try {
|
||||||
final Mindmap mindmap = findMindmapById(Integer.parseInt(mapId));
|
for (final String mapId : mapsIds) {
|
||||||
mindmapService.removeMindmap(mindmap, user);
|
final Mindmap mindmap = findMindmapById(Integer.parseInt(mapId));
|
||||||
|
mindmapService.removeMindmap(mindmap, user);
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
final AccessDeniedSecurityException accessDenied = new AccessDeniedSecurityException("Map could not be deleted. Maps to be deleted:" + ids);
|
||||||
|
accessDenied.initCause(e);
|
||||||
|
throw accessDenied;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue