fix(settings): expose SuperAdmin feature flags to customer get_settings

Menu gates like enable_product_funds were missing from the public API, so the user app could not hide disabled features.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-25 14:19:22 +03:30
co-authored by Cursor
parent dfa6d792ee
commit 793c8cd9ed
4 changed files with 39 additions and 1 deletions
+4
View File
@@ -117,6 +117,10 @@ class Setting extends Model
return false;
}
if (\App\Services\SuperAdminProgramSettingsOverlay::isClientFeatureKey($key)) {
return true;
}
$flag = is_array($row) ? ($row['show_to_user'] ?? 0) : ($row->show_to_user ?? 0);
return $flag === true || $flag === 1 || $flag === '1';