Fix removal of maps shared in read-only.

This commit is contained in:
Paulo Gustavo Veiga
2022-10-05 20:27:41 -07:00
parent ad84282ef8
commit b97d5b1a00
4 changed files with 8 additions and 13 deletions

View File

@@ -38,6 +38,7 @@ public class ViewBaseSecurityAdvise
@Override
protected boolean isAllowed(@Nullable User user, Mindmap map) {
System.out.println("VIEWWWWWWWWWWWWW");
return getMindmapService().hasPermissions(user, map, CollaborationRole.VIEWER);
}