Improve message on lack of permissions to perform map operations

This commit is contained in:
Paulo Gustavo Veiga
2022-03-14 15:04:15 -03:00
parent e38c1bcc7c
commit 7ca5bf716f
2 changed files with 12 additions and 8 deletions

View File

@@ -176,7 +176,7 @@ public class MindmapController {
private MindMapBean findMindmapBean(int mapId) throws MapCouldNotFoundException, AccessDeniedSecurityException {
final User user = Utils.getUser();
if (!mindmapService.hasPermissions(user, mapId, CollaborationRole.VIEWER)) {
throw new AccessDeniedSecurityException("No enough permissions to open map with id" + mapId);
throw new AccessDeniedSecurityException("No enough permissions to open map with id " + mapId);
}
final Mindmap mindmap = findMindmap(mapId);