mirror of
https://github.com/coollabsio/coolify.git
synced 2025-12-28 05:34:50 +00:00
26 lines
523 B
PHP
26 lines
523 B
PHP
<?php
|
|
|
|
namespace App\Policies;
|
|
|
|
use App\Models\InstanceSettings;
|
|
use App\Models\User;
|
|
|
|
class InstanceSettingsPolicy
|
|
{
|
|
/**
|
|
* Determine whether the user can view the instance settings.
|
|
*/
|
|
public function view(User $user, InstanceSettings $settings): bool
|
|
{
|
|
return isInstanceAdmin();
|
|
}
|
|
|
|
/**
|
|
* Determine whether the user can update the instance settings.
|
|
*/
|
|
public function update(User $user, InstanceSettings $settings): bool
|
|
{
|
|
return isInstanceAdmin();
|
|
}
|
|
}
|