Skip to content

Workspace audit entries are written but never readable #118

Open

Description

@JuansesDev

What happens

Audit entries for workspace and member actions are written with project_id = NULL, while the list query filters on project_id = $1. Those entries exist in the table but are not reachable from any UI or API path.

Where

  • backend/internal/handler/workspace.go:80,148,218 — entries written with a nil project.
  • backend/internal/service/audit.go:57-68.
  • Audit list query filters by project: senddock-pro/internal/audit/repo.go:76.

Impact

Team administrators cannot see who changed members or roles.

Proposed fix

Serve a workspace-scoped query (and UI), or attribute those entries to a project that the workspace can read.

Acceptance

  • A workspace owner can read workspace-level audit entries.

Activity

  1. added
    bug
    pro
    on Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendbugpro

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions