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 8bb8a7f commit d373815Copy full SHA for d373815
app/Livewire/Project/Shared/ExecuteContainerCommand.php
@@ -33,6 +33,9 @@ class ExecuteContainerCommand extends Component
33
34
public function mount()
35
{
36
+ if (! auth()->user()->isAdmin()) {
37
+ abort(403);
38
+ }
39
$this->parameters = get_route_parameters();
40
$this->containers = collect();
41
$this->servers = collect();
@@ -130,7 +133,6 @@ public function connectToContainer()
130
133
131
134
try {
132
135
$container_name = data_get($this->container, 'container.Names');
- ray($this->container);
136
if (is_null($container_name)) {
137
throw new \RuntimeException('Container not found.');
138
}
0 commit comments