Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

Simplify account deletion condition in ProfileController

Sebastian Albert94d64c989b62
diff --git a/app/Http/Controllers/App/Settings/ProfileController.php b/app/Http/Controllers/App/Settings/ProfileController.php
index 69d6a3d6e..0af891a18 100644
--- a/app/Http/Controllers/App/Settings/ProfileController.php
+++ b/app/Http/Controllers/App/Settings/ProfileController.php
@@ -126,7 +126,7 @@ class ProfileController extends Controller
$user->workspaces()->detach();
- if ($account && $user->isAccountOwner()) {
+ if ($account) {
$account->delete();
}
});