mirror of
https://github.com/AlistGo/alist.git
synced 2025-12-24 06:30:05 +08:00
- Add `CountEnabledAdminsExcluding` function to count enabled admins excluding a specific user. - Implement `CountUsersByRoleAndEnabledExclude` in `internal/db/user.go` to support exclusion logic. - Refactor role handling with switch-case for better readability in `server/handles/role.go`. - Ensure at least one enabled admin remains when disabling an admin in `server/handles/user.go`. - Maintain guest role name consistency when updating roles in `internal/op/role.go`. |
||
|---|---|---|
| .. | ||
| archive.go | ||
| const.go | ||
| driver_test.go | ||
| driver.go | ||
| fs.go | ||
| hook.go | ||
| label_file_binding.go | ||
| label.go | ||
| meta.go | ||
| path.go | ||
| role.go | ||
| setting.go | ||
| sshkey.go | ||
| storage_test.go | ||
| storage.go | ||
| user.go | ||