Remove support for admin to remove mindmaps

This commit is contained in:
Paulo Gustavo Veiga 2022-02-12 12:47:54 -08:00
parent 89dd7e0193
commit c269cd9edb

View File

@ -156,7 +156,7 @@ public class MindmapServiceImpl
@Override
public void removeMindmap(@NotNull Mindmap mindmap, @NotNull User user) throws WiseMappingException {
if (mindmap.getCreator().identityEquality(user) || isAdmin(user)) {
if (mindmap.getCreator().identityEquality(user)) {
mindmapManager.removeMindmap(mindmap);
} else {
final Optional<Collaboration> collaboration = mindmap.findCollaboration(user);