feat(settings): add menu/show_to_user and public get_settings for client apps
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -59,9 +59,9 @@ Montify → payment_url → درگاه بانکی
|
||||
|
||||
### ۳.۲. فیلتر `get_settings`
|
||||
|
||||
در `App\Models\Setting::isSecretOrServerOnlyKey()` و `SettingsController::authorizeSettingsPayload()`:
|
||||
در `App\Models\Setting::isSecretOrServerOnlyKey()` و `Setting::forClientApi()`:
|
||||
|
||||
- درخواست عمومی (`api/get_settings` بدون auth ادمین) → کلیدهای محرمانه حذف میشوند.
|
||||
- درخواست عمومی (`api/get_settings` بدون auth) → فقط ردیفهای `show_to_user=1`؛ credential حذف میشود.
|
||||
- پنل ادمین (`admin/get_settings` با `auth:user`) → همه کلیدها قابل مشاهده/ویرایش طبق `can_edit`.
|
||||
|
||||
کلیدهای مرتبط با پرداخت که به اپ عمومی نمیروند شامل:
|
||||
|
||||
Reference in New Issue
Block a user