Changeset View
Changeset View
Standalone View
Standalone View
src/app/Http/Controllers/API/V4/UsersController.php
Show First 20 Lines • Show All 197 Lines • ▼ Show 20 Lines | public static function statusInfo($user): array | ||||
'enableFiles' => !$isDegraded && $hasBeta && \config('app.with_files'), | 'enableFiles' => !$isDegraded && $hasBeta && \config('app.with_files'), | ||||
// TODO: Make 'enableFolders' working for wallet controllers that aren't account owners | // TODO: Make 'enableFolders' working for wallet controllers that aren't account owners | ||||
'enableFolders' => $isController && $hasCustomDomain && $hasBeta, | 'enableFolders' => $isController && $hasCustomDomain && $hasBeta, | ||||
// TODO: Make 'enableResources' working for wallet controllers that aren't account owners | // TODO: Make 'enableResources' working for wallet controllers that aren't account owners | ||||
'enableResources' => $isController && $hasCustomDomain && $hasBeta, | 'enableResources' => $isController && $hasCustomDomain && $hasBeta, | ||||
'enableRooms' => $hasMeet, | 'enableRooms' => $hasMeet, | ||||
'enableSettings' => $isController, | 'enableSettings' => $isController, | ||||
'enableUsers' => $isController, | 'enableUsers' => $isController, | ||||
'enableWallets' => $isController, | 'enableWallets' => $isController && \config('app.with_wallet'), | ||||
'enableWalletMandates' => $isController, | 'enableWalletMandates' => $isController, | ||||
'enableWalletPayments' => $isController && (!$plan || $plan->mode != Plan::MODE_MANDATE), | 'enableWalletPayments' => $isController && (!$plan || $plan->mode != Plan::MODE_MANDATE), | ||||
'enableCompanionapps' => $hasBeta, | 'enableCompanionapps' => $hasBeta, | ||||
]; | ]; | ||||
return array_merge($process, $result); | return array_merge($process, $result); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 497 Lines • Show Last 20 Lines |