PeerTube_original/client
kontrollanten a37e9e74ff
Give moderators access to edit channels (#4608)
* 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 2c627c154e.

* 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>
2021-12-13 15:29:13 +01:00
..
e2e Fix E2E tests 2021-11-24 10:49:12 +01:00
src Give moderators access to edit channels (#4608) 2021-12-13 15:29:13 +01:00
webpack Fix babel for mjs files 2021-11-24 15:37:44 +01:00
.browserslistrc Allow plugins to load a video by id 2021-02-11 10:23:52 +01:00
.eslintrc.json Migrate to webdriverio 2021-09-01 15:06:46 +02:00
.gitignore Update angular 2021-11-10 16:33:55 +01:00
.stylelintrc.json Fix player icons on chrome 2021-06-29 15:19:45 +02:00
.xliffmerge.json Update xliffmerge 2021-11-15 15:56:58 +01:00
angular.json Remove deprecated option 2021-11-17 08:56:08 +01:00
package.json Bumped to version v4.0.0 2021-12-13 09:22:25 +01:00
proxy.config.json Bidi support 2021-06-07 18:14:05 +02:00
tsconfig.eslint.json Speed up client lint 2021-08-18 10:44:16 +02:00
tsconfig.json Migrate client to eslint 2021-08-18 08:35:06 +02:00
yarn.lock Update client dependencies 2021-11-29 11:45:17 +01:00