An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
feat(auth): authorize sqlite databases with the database policy
peaklabs-dev92f8b806ea9a
diff --git a/app/Http/Middleware/CanUpdateResource.php b/app/Http/Middleware/CanUpdateResource.phpindex 3b28ee07cf..738e728e20 100644--- a/app/Http/Middleware/CanUpdateResource.php+++ b/app/Http/Middleware/CanUpdateResource.php@@ -17,6 +17,7 @@ use App\Models\StandaloneMongodb;use App\Models\StandaloneMysql;use App\Models\StandalonePostgresql;use App\Models\StandaloneRedis;+use App\Models\StandaloneSqlite;use Closure;use Illuminate\Http\Request;use Illuminate\Support\Facades\Gate;@@ -38,6 +39,7 @@ class CanUpdateResourceStandaloneDragonfly::class,StandaloneClickhouse::class,StandaloneMongodb::class,+ StandaloneSqlite::class,],'stack_service_uuid' => [ServiceApplication::class, ServiceDatabase::class],'service_uuid' => [Service::class],diff --git a/app/Policies/ResourceCreatePolicy.php b/app/Policies/ResourceCreatePolicy.phpindex a7a855402e..5b60674d5b 100644--- a/app/Policies/ResourceCreatePolicy.php+++ b/app/Policies/ResourceCreatePolicy.php@@ -12,6 +12,7 @@ use App\Models\StandaloneMongodb;use App\Models\StandaloneMysql;use App\Models\StandalonePostgresql;use App\Models\StandaloneRedis;+use App\Models\StandaloneSqlite;use App\Models\User;class ResourceCreatePolicy@@ -28,6 +29,7 @@ class ResourceCreatePolicyStandaloneKeydb::class,StandaloneDragonfly::class,StandaloneClickhouse::class,+ StandaloneSqlite::class,Service::class,Application::class,GithubApp::class,diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.phpindex e8e6fb42c6..bab3d87c3b 100644--- a/app/Providers/AuthServiceProvider.php+++ b/app/Providers/AuthServiceProvider.php@@ -36,6 +36,7 @@ use App\Models\StandaloneMongodb;use App\Models\StandaloneMysql;use App\Models\StandalonePostgresql;use App\Models\StandaloneRedis;+use App\Models\StandaloneSqlite;use App\Models\SwarmDocker;use App\Models\Tag;use App\Models\Team;@@ -104,6 +105,7 @@ class AuthServiceProvider extends ServiceProviderStandaloneKeydb::class => DatabasePolicy::class,StandaloneDragonfly::class => DatabasePolicy::class,StandaloneClickhouse::class => DatabasePolicy::class,+ StandaloneSqlite::class => DatabasePolicy::class,// Notification policies - all use the shared NotificationPolicyEmailNotificationSettings::class => NotificationPolicy::class,