mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 22:14:26 +00:00
fix: align resource creation permissions
This commit is contained in:
1 parent
9f36a8df31
commit
29445bf177
10 files changed
+177
-34
No files matched your search
@@ -6,10 +6,13 @@ use App\Models\Application;
|
||||
use App\Models\Project;
|
||||
use App\Services\DockerImageParser;
|
||||
use App\Support\ValidationPatterns;
|
||||
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
|
||||
use Livewire\Component;
|
||||
|
||||
class DockerImage extends Component
|
||||
{
|
||||
use AuthorizesRequests;
|
||||
|
||||
public string $imageName = '';
|
||||
|
||||
public string $imageTag = '';
|
||||
@@ -80,6 +83,8 @@ class DockerImage extends Component
|
||||
|
||||
public function submit()
|
||||
{
|
||||
$this->authorize('create', Application::class);
|
||||
|
||||
$this->validate([
|
||||
'imageName' => ValidationPatterns::dockerImageNameRules(required: true),
|
||||
'imageTag' => ValidationPatterns::dockerImageTagRules(),
|
||||
|
||||
Reference in new issue
Block a user