fix(settings): bind settings resource in advanced options

Pass the settings model as a bound prop so the advanced registration toggle
can resolve its resource correctly.
This commit is contained in:
Andras Bacsai
2026-06-15 13:25:50 +02:00
parent 0f05138608
commit e1b47d0cf0
2 changed files with 7 additions and 1 deletions
@@ -8,6 +8,12 @@ return new class extends Migration
/**
* The configuration snapshot/diff now store an encrypted blob (not valid
* JSON), so the columns must hold arbitrary text instead of json.
*
* Coolify's own backend runs exclusively on PostgreSQL in production and
* SQLite in testing (see config/database.php the only configured
* connections are `pgsql` and `testing`). MySQL/MariaDB are user-managed
* resources, never Coolify's application database, so no driver path is
* needed for them here.
*/
public function up(): void
{
@@ -42,7 +42,7 @@
</div>
@endif
<div class="md:w-96">
<x-forms.checkbox instantSave canGate="update" canResource="$settings"
<x-forms.checkbox instantSave canGate="update" :canResource="$settings"
id="disable_registration_when_oauth_enabled"
helper="When enabled, the normal registration page is hidden if at least one OAuth provider is enabled. OAuth providers can still create users if their provider-specific registration option allows it."
label="Disable Registration When OAuth Is Enabled" />