mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
- BUG-046: wrap switchActiveDevice in isolated try-catch with fallback
- BUG-047: track pending uploads, block send until complete
- BUG-048: add 100MB size limit and MIME allowlist on paste
- BUG-049: replace requestAnimationFrame with setTimeout for VAD
- BUG-050: clear stale audio elements before auto-reconnect
- BUG-051: add origin check + segment-based path deny-list to proxy
- BUG-052: replace 6 swallowed .catch(() => {}) with logging
- BUG-053: already fixed (TOFU pinning in livekit_proxy.rs)
- BUG-054: account deletion endpoint + UI with password confirmation,
per-user progressive lockout, and anonymization (not hard delete)
- BUG-055: remove 4 stale vitest coverage exclusions
- BUG-056: fix proxy URL test with proper Tauri invoke mock
- Fix pre-existing themes.test.ts accent color key mismatch
- Harden isOriginAllowed to default-deny when no origins configured
- Return 204 No Content on account deletion (consistency)
24 lines
767 B
Go
24 lines
767 B
Go
package db
|
|
|
|
import "errors"
|
|
|
|
// Sentinel errors for the db package. Use errors.Is() to check.
|
|
var (
|
|
// ErrNotFound indicates the requested resource does not exist.
|
|
ErrNotFound = errors.New("not found")
|
|
|
|
// ErrForbidden indicates the caller lacks permission for the operation.
|
|
ErrForbidden = errors.New("forbidden")
|
|
|
|
// ErrConflict indicates a uniqueness constraint violation (e.g., duplicate username).
|
|
ErrConflict = errors.New("conflict")
|
|
|
|
// ErrBanned indicates the user is banned.
|
|
ErrBanned = errors.New("banned")
|
|
|
|
// ErrLastAdmin indicates the operation was rejected because the user is
|
|
// the only remaining admin/owner and deleting them would leave the server
|
|
// without an administrator.
|
|
ErrLastAdmin = errors.New("last admin cannot be deleted")
|
|
)
|