Skip to content

TaskView is a self-hosted project and task management platform focused on clarity, ownership, and control. TaskView is built for teams that want a transparent, self-hosted alternative to SaaS task managers.

318 B
Raw Blame
import type { NextFunction, Request, Response } from 'express';
import { AccountDeletion } from '../AccountDeletion';

export const RequireAccountDeletion = (_req: Request, res: Response, next: NextFunction) => {
    if (!AccountDeletion.allowed()) {
        return res.status(403).send();
    }
    return next();
};