We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63f2dae commit 96f32dfCopy full SHA for 96f32df
src/Resources/TemplateResource.php
@@ -111,7 +111,7 @@ protected static function getFormContent(): array
111
// Disable field UI if the record exists and user can't unlock it
112
->disabled(fn (?Template $record) => !is_null($record) && !static::can('unlock', $record))
113
// Save the field if record does not exist or user can unlock it
114
- ->dehydrated(fn (?Template $record) => is_null($record) || !static::can('unlock', $record)),
+ ->dehydrated(fn (?Template $record) => is_null($record) || static::can('unlock', $record)),
115
]),
116
];
117
}
0 commit comments