PeerTube/shared/models/users
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
..
index.ts Introduce user command 2021-07-20 15:27:18 +02:00
user-create-result.model.ts Introduce user command 2021-07-20 15:27:18 +02:00
user-create.model.ts Make channelName optionnal only for the API 2020-08-11 08:46:35 +02:00
user-flag.model.ts Reorganize shared models 2020-08-07 08:28:14 +02:00
user-login.model.ts
user-notification-setting.model.ts Add new plugin/peertube version notifs 2021-03-24 18:18:41 +01:00
user-notification.model.ts Add ability to search by host in server 2021-07-27 17:10:52 +02:00
user-refresh-token.model.ts
user-register.model.ts Improve registration 2019-06-07 17:05:42 +02:00
user-right.enum.ts Give moderators access to edit channels (#4608) 2021-12-13 15:29:13 +01:00
user-role.ts Reorganize shared models 2020-08-07 08:28:14 +02:00
user-scoped-token.ts allow private syndication feeds via a user feedToken 2020-11-25 11:07:56 +01:00
user-update-me.model.ts Allow accounts to skip account setup modal 2021-08-27 10:15:55 +02:00
user-update.model.ts Add ability to update plugin auth 2021-02-01 15:39:13 +01:00
user-video-quota.model.ts
user-watching-video.model.ts Add user history and resume videos 2018-10-05 11:22:38 +02:00
user.model.ts Allow accounts to skip account setup modal 2021-08-27 10:15:55 +02:00