mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 05:19:37 +00:00
fix: add authorization checks for environment and project views
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user