mirror of https://github.com/Xhofe/alist
![]() * 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. |
||
---|---|---|
.. | ||
archive.go | ||
auth.go | ||
const.go | ||
down.go | ||
driver.go | ||
fsbatch.go | ||
fsmanage.go | ||
fsread.go | ||
fsup.go | ||
helper.go | ||
index.go | ||
label.go | ||
label_file_binding.go | ||
ldap_login.go | ||
meta.go | ||
offline_download.go | ||
role.go | ||
search.go | ||
setting.go | ||
sshkey.go | ||
ssologin.go | ||
storage.go | ||
task.go | ||
user.go | ||
webauthn.go |