Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

297 B
Raw Blame
import { ApiError } from "../../errors/api-error";

/** Admins can't lock themselves out through the directory. */
export function rejectSelfAction(
  actorId: string,
  userId: string,
  code: string,
  message: string,
) {
  if (actorId === userId) throw new ApiError(400, { code, message });
}