Skip to content

fix(admin): exclude the current admin from the impersonation search#1722

Open
giladresisi wants to merge 1 commit into
mainfrom
fix/impersonation-search-exclude-admin
Open

fix(admin): exclude the current admin from the impersonation search#1722
giladresisi wants to merge 1 commit into
mainfrom
fix/impersonation-search-exclude-admin

Conversation

@giladresisi

Copy link
Copy Markdown
Collaborator

An admin could see and pick their own account in the impersonation list and "impersonate" themselves. getImpersonateUser now takes the requesting user id and excludes it from the results.

Split from #1668.

🤖 Generated with Claude Code

An admin could see and pick their own account in the impersonation list and
"impersonate" themselves. getImpersonateUser now takes the requesting user id
and excludes it from the results, so an admin can neither impersonate nor (via
the same search) switch to themselves.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@postiz-contribution postiz-contribution Bot added the contribution:approved Approved contributor label Jul 14, 2026
@postiz-contribution

Copy link
Copy Markdown

Contribution-checker quality warning
Heuristic score: 25/100 (low). This is a non-blocking warning surfaced by the project's quality settings.

Heuristics that flagged:

  • PR doesn't use the repo's PR template: 5 required checkbox items missing (max 1, match ≥80%)
  • AI watermark phrase: Matched: "Generated with Claude Code"
  • Commit message too long: Longest: 397 chars

If this is a genuine contribution, please add detail to your PR description and tighten the diff scope before reviewers look at it.

@postiz-agent

postiz-agent Bot commented Jul 14, 2026

Copy link
Copy Markdown

⚠️ Snyk checks are incomplete.

Status Scan Engine Critical High Medium Low Total (0)
⚠️ Open Source Security 0 0 0 0 See details
⚠️ Licenses 0 0 0 0 See details
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution:approved Approved contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant