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.
TypeScript graphviewkanban-boardnodejsproductivityproject-managementself-hostedtasktask-managementtask-managertodoapp
import type { NextFunction, Request, Response } from 'express'
import { ORG_ALL_ROLES, type OrgRole } from '../types'
export const IsOrgMember = async (req: Request, res: Response, next: NextFunction) => {
const orgId = Number(req.params.orgId || req.body.organizationId)
if (!orgId) return res.status(400).end()
const member = await req.appUser.organizationManager.getCurrentUserMember(orgId)
if (!member || !ORG_ALL_ROLES.includes(member.role as OrgRole)) return res.status(403).end()
next()
}