mirror of
https://github.com/pelican-dev/panel.git
synced 2025-06-23 09:51:08 +02:00
21 lines
354 B
PHP
21 lines
354 B
PHP
<?php
|
|
|
|
namespace App\Traits\Filament;
|
|
|
|
use Filament\Facades\Filament;
|
|
|
|
trait BlockAccessInConflict
|
|
{
|
|
public static function canAccess(): bool
|
|
{
|
|
/** @var Server $server */
|
|
$server = Filament::getTenant();
|
|
|
|
if ($server->isInConflictState()) {
|
|
return false;
|
|
}
|
|
|
|
return parent::canAccess();
|
|
}
|
|
}
|