fix: add authorization checks for environment and project views

This commit is contained in:
Andras Bacsai committed 2025-11-26 09:55:04 +01:00
1 parent 5f33ad74b5
commit ce134cb8b1
3 files changed
+15 -19

No files matched your search

@@ -60,6 +60,7 @@ class Show extends Component
public function switch()
{
$this->authorize('view', $this->environment);
$this->view = $this->view === 'normal' ? 'dev' : 'normal';
$this->getDevView();
}