From 5baee5fca418487e72ddcd6419d31bca8659b668 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Tue, 2 Jun 2020 20:50:42 +0200 Subject: rename blacklist to block/blocklist, merge block and auto-block views - also replace whitelist with allowlist - add advanced filters for video-block-list view - move icons in video-block-list and video-abuse-list to left side for visibility - add robot icon to depict automated nature of a block in video-block-list resolves #2790 --- server/controllers/api/videos/blacklist.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/controllers') diff --git a/server/controllers/api/videos/blacklist.ts b/server/controllers/api/videos/blacklist.ts index 3b25ceea2..2c6948923 100644 --- a/server/controllers/api/videos/blacklist.ts +++ b/server/controllers/api/videos/blacklist.ts @@ -23,14 +23,14 @@ const blacklistRouter = express.Router() blacklistRouter.post('/:videoId/blacklist', authenticate, - ensureUserHasRight(UserRight.MANAGE_VIDEO_BLACKLIST), + ensureUserHasRight(UserRight.MANAGE_VIDEO_BLOCKS), asyncMiddleware(videosBlacklistAddValidator), asyncMiddleware(addVideoToBlacklistController) ) blacklistRouter.get('/blacklist', authenticate, - ensureUserHasRight(UserRight.MANAGE_VIDEO_BLACKLIST), + ensureUserHasRight(UserRight.MANAGE_VIDEO_BLOCKS), paginationValidator, blacklistSortValidator, setBlacklistSort, @@ -41,14 +41,14 @@ blacklistRouter.get('/blacklist', blacklistRouter.put('/:videoId/blacklist', authenticate, - ensureUserHasRight(UserRight.MANAGE_VIDEO_BLACKLIST), + ensureUserHasRight(UserRight.MANAGE_VIDEO_BLOCKS), asyncMiddleware(videosBlacklistUpdateValidator), asyncMiddleware(updateVideoBlacklistController) ) blacklistRouter.delete('/:videoId/blacklist', authenticate, - ensureUserHasRight(UserRight.MANAGE_VIDEO_BLACKLIST), + ensureUserHasRight(UserRight.MANAGE_VIDEO_BLOCKS), asyncMiddleware(videosBlacklistRemoveValidator), asyncMiddleware(removeVideoFromBlacklistController) ) -- cgit v1.2.3