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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user