mirror of
https://github.com/coollabsio/coolify.git
synced 2026-06-19 07:35:25 +00:00
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:
+6
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user