fix: add authorization checks for environment and project views

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

View File

@@ -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();
}