Changeset View
Changeset View
Standalone View
Standalone View
src/app/Http/Controllers/API/V4/UsersController.php
Show First 20 Lines • Show All 178 Lines • ▼ Show 20 Lines | public static function statusInfo($user): array | ||||
->unique() | ->unique() | ||||
->values() | ->values() | ||||
->all(); | ->all(); | ||||
$hasBeta = in_array('beta', $skus); | $hasBeta = in_array('beta', $skus); | ||||
$result = [ | $result = [ | ||||
'skus' => $skus, | 'skus' => $skus, | ||||
'enableBeta' => in_array('beta', $skus), | |||||
mollekopf: Is this intentional? | |||||
Done Inline ActionsYes. We hide the geo-lockin setting in the UI if user has no private beta entitlement, for now. machniak: Yes. We hide the geo-lockin setting in the UI if user has no private beta entitlement, for now. | |||||
// TODO: This will change when we enable all users to create domains | // TODO: This will change when we enable all users to create domains | ||||
'enableDomains' => $isController && $hasCustomDomain, | 'enableDomains' => $isController && $hasCustomDomain, | ||||
// TODO: Make 'enableDistlists' working for wallet controllers that aren't account owners | // TODO: Make 'enableDistlists' working for wallet controllers that aren't account owners | ||||
'enableDistlists' => $isController && $hasCustomDomain && $hasBeta, | 'enableDistlists' => $isController && $hasCustomDomain && $hasBeta, | ||||
'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 | ||||
▲ Show 20 Lines • Show All 525 Lines • Show Last 20 Lines |
Is this intentional?