X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmiddlewares%2Fuser-right.ts;h=7d53e834125aeaa12226d6a055c5675a27a59cac;hb=dfbcefc20dc64f0814b1f2e8e782a4ea1bd24db2;hp=87a1766cfa3e99ab26cf721d663be898022079a9;hpb=c0e8b12e7fd554ba4d2ceb0c4900804c6a4c63ea;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/middlewares/user-right.ts b/server/middlewares/user-right.ts index 87a1766cf..7d53e8341 100644 --- a/server/middlewares/user-right.ts +++ b/server/middlewares/user-right.ts @@ -1,7 +1,6 @@ -import * as express from 'express' -import { UserRight } from '../../shared' +import express from 'express' +import { HttpStatusCode, UserRight } from '@shared/models' import { logger } from '../helpers/logger' -import { HttpStatusCode } from '../../shared/models/http/http-error-codes' function ensureUserHasRight (userRight: UserRight) { return function (req: express.Request, res: express.Response, next: express.NextFunction) {