diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java index e21a319193c..af74b26950e 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/EnvManagerCEImpl.java @@ -725,7 +725,7 @@ public Mono verifyCurrentUserIsSuper() { @Override public Mono restart() { - return verifyCurrentUserIsSuper().then(restartWithoutAclCheck()); + return verifyCurrentUserIsSuper().flatMap(user -> restartWithoutAclCheck()); } /**