alist/internal/bootstrap/data
千石 a9fcd51bc4
fix: ensure DefaultRole stores role ID while exposing role name in APIs (#9279)
* fix(setting): ensure DefaultRole stores role ID while exposing role name in APIs

- Simplified initial settings to use `model.GUEST` as the default role ID instead of querying roles at startup.
- Updated `GetSetting`, `ListSettings` handlers to:
  - Convert stored role ID into the corresponding role name when returning data.
  - Preserve dynamic role options for selection.
- Removed unused `strings` import and role preloading logic from `InitialSettings`.
- This change avoids DB dependency during initialization while keeping consistent role display for frontend clients.

* fix(setting): ensure DefaultRole stores role ID while exposing role
name in APIs (fix/settings-get-role)

- Simplify initial settings to use `model.GUEST` as the default role ID
  instead of querying roles at startup.
- Update `GetSetting`, `ListSettings` handlers to:
  - Convert stored role ID into the corresponding role name when
    returning data.
  - Preserve dynamic role options for selection.
- Remove unused `strings` import and role preloading logic from
  `InitialSettings`.
- Avoid DB dependency during initialization while keeping consistent
  role display for frontend clients.
2025-08-19 15:01:32 +08:00
..
data.go feat: enhance permission control and label management (#9215) 2025-07-26 09:51:59 +08:00
dev.go feat: enhance permission control and label management (#9215) 2025-07-26 09:51:59 +08:00
role.go feat: enhance permission control and label management (#9215) 2025-07-26 09:51:59 +08:00
setting.go fix: ensure DefaultRole stores role ID while exposing role name in APIs (#9279) 2025-08-19 15:01:32 +08:00
task.go feat: persistant Task (#6925 close #5313) 2024-08-07 12:16:21 +08:00
user.go feat: enhance permission control and label management (#9215) 2025-07-26 09:51:59 +08:00