mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-04 10:42:23 +00:00
- Check read access on the project or environment for shared variables pages, the canvas, and the sidebar, not only navigation access - Require team-wide read for the server shared variables canvas API - Open the environment variable editor read-only when the value is hidden - Show the integration tokens button only to users who can open it - Show disabled confirmation buttons as disabled, not as danger buttons
25 lines
540 B
PHP
25 lines
540 B
PHP
<?php
|
|
|
|
namespace App\Livewire\SharedVariables\Project;
|
|
|
|
use App\Models\Project;
|
|
use Illuminate\Support\Collection;
|
|
use Livewire\Component;
|
|
|
|
class Index extends Component
|
|
{
|
|
public Collection $projects;
|
|
|
|
public function mount()
|
|
{
|
|
$this->projects = Project::ownedByCurrentTeamCached()
|
|
->filter(fn (Project $project) => auth()->user()->can('viewSharedVariables', $project))
|
|
->values();
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
return view('livewire.shared-variables.project.index');
|
|
}
|
|
}
|