mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 20:24:44 +02:00
fix 500 error on file browser
This commit is contained in:
parent
378059625e
commit
c2364a845b
@ -18,6 +18,8 @@ class FileResource extends Resource
|
|||||||
|
|
||||||
protected static string|\BackedEnum|null $navigationIcon = 'tabler-files';
|
protected static string|\BackedEnum|null $navigationIcon = 'tabler-files';
|
||||||
|
|
||||||
|
protected static bool $isScopedToTenant = false;
|
||||||
|
|
||||||
// TODO: find better way handle server conflict state
|
// TODO: find better way handle server conflict state
|
||||||
public static function canAccess(): bool
|
public static function canAccess(): bool
|
||||||
{
|
{
|
||||||
|
@ -150,6 +150,10 @@ class File extends Model
|
|||||||
*/
|
*/
|
||||||
public function getRows(): array
|
public function getRows(): array
|
||||||
{
|
{
|
||||||
|
if (!isset(self::$server)) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$fileRepository = (new DaemonFileRepository())->setServer(self::$server);
|
$fileRepository = (new DaemonFileRepository())->setServer(self::$server);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user