aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/videos/video-channels.ts
Commit message (Collapse)AuthorAgeFilesLines
* Give moderators access to edit channels (#4608)kontrollanten2021-12-131-45/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * give admins access to edit all channels closes #4598 * test(channels): +admin update another users channel * Fix tests * fix(server): delete another users channel Since the channel owner isn't necessary the auth user we need to check the right account whether it's the last video or not. * REMOVE_ANY_VIDEO_CHANNEL > MANAGE_ANY_VIDEO_CHANNEL Merge REMOVE_ANY_VIDEO_CHANNEL and MANY_VIDEO_CHANNELS to MANAGE_ANY_VIDEO_CHANNEL. * user-right: moderator can't manage admins channel * client: MyVideoChannelCreateComponent > VideoChannelCreateComponent * client: MyVideoChannelEdit > VideoChannelEdit * Revert "user-right: moderator can't manage admins channel" This reverts commit 2c627c154e2bfe6af2e0f45efb27faf4117572f3. * server: clean dupl validator functionality * fix ensureUserCanManageChannel usage It's not async anymore. * server: merge channel validator middleares ensureAuthUserOwnsChannelValidator & ensureUserCanManageChannel gets merged into one middleware. * client(VideoChannelEdit): redirect to prev route * fix(VideoChannels): handle anon users * client: new routes for create/update channel * Refactor channel validators Co-authored-by: Chocobozzz <me@florianbigard.com>
* Made the video channels limit (per user) server-wide configurable (#4491)Florian CUNY2021-10-261-3/+3
| | | | | | | | | | | | | | | * Made the video channels limit (per user) server-wide configurable Implements https://github.com/Chocobozzz/PeerTube/issues/3092 Also added a "quota bar" in the account's settings page * Fixed lint errors * Another pass at fixing lint errors * Applied code suggestions * Removed 'video channels quota'
* Split check user params testsChocobozzz2021-10-201-1/+1
|
* Add ability to view my followersChocobozzz2021-10-201-16/+0
|
* esModuleInterop to trueChocobozzz2021-08-271-1/+1
|
* Fix backend channel name validator consistencyChocobozzz2021-08-051-7/+7
|
* Refactor requestsChocobozzz2021-07-201-1/+1
|
* Add ability to search playlistsChocobozzz2021-06-251-0/+13
|
* Move middleware utils in middlewaresChocobozzz2021-06-031-2/+1
| | | | helpers modules should not import models
* refactor API errors to standard error formatRigel Kent2021-06-021-22/+25
|
* Cleanup models directory organizationChocobozzz2021-05-111-2/+2
|
* Add banners supportChocobozzz2021-04-081-2/+0
|
* replace numbers with typed http status codes (#3409)Rigel Kent2020-12-071-9/+10
|
* Split types and typingsChocobozzz2020-06-181-1/+1
|
* Optimize views per day in video channelsChocobozzz2020-06-121-7/+10
|
* Put channel stats behind withStats flagRigel Kent2020-03-311-2/+12
|
* Fix channel creation limitationChocobozzz2019-12-051-1/+1
|
* Limit channel numbersChocobozzz2019-11-291-0/+9
| | | | | We can't load too much channels in selects and it helps to prevent actor name squatting
* Cleanup model typesChocobozzz2019-08-201-3/+2
|
* Stronger model typingsChocobozzz2019-08-191-2/+3
|
* Fix express validatorChocobozzz2019-07-251-1/+1
|
* Refactor middleware helpersChocobozzz2019-07-241-2/+1
|
* Server: Bulk update videos support fieldChocobozzz2019-05-311-3/+13
|
* Don't expose constants directly in initializers/Chocobozzz2019-04-111-2/+1
|
* Does existChocobozzz2019-03-191-7/+7
|
* Playlist server APIChocobozzz2019-03-181-14/+0
|
* Add user history and resume videosChocobozzz2018-10-051-0/+175