From 43df00a30dc07ec6fc1b30d41eac011e4ea8641b Mon Sep 17 00:00:00 2001 From: kontrollanten <6680299+kontrollanten@users.noreply.github.com> Date: Mon, 6 Dec 2021 05:54:26 +0100 Subject: [PATCH] give admins access to edit all channels closes #4598 --- .../my-video-channel-edit.component.html | 112 ------------------ .../my-video-channels-routing.module.ts | 20 ---- .../my-video-channels.component.html | 4 +- .../my-video-channels.module.ts | 8 +- .../video-channel-create.component.ts} | 6 +- .../video-channel-edit.component.html | 96 +++++++++++++++ .../video-channel-edit.component.scss} | 4 + .../video-channel-edit/video-channel-edit.ts} | 0 .../video-channel-update.component.ts} | 14 +-- .../video-channels-routing.module.ts | 21 ++++ .../video-channels.component.html | 4 +- .../video-channels.component.ts | 8 +- .../+video-channels/video-channels.module.ts | 10 +- server/controllers/api/video-channel.ts | 11 +- server/middlewares/user-right.ts | 20 +++- shared/models/users/user-right.enum.ts | 4 +- 16 files changed, 178 insertions(+), 164 deletions(-) delete mode 100644 client/src/app/+my-library/+my-video-channels/my-video-channel-edit.component.html rename client/src/app/{+my-library/+my-video-channels/my-video-channel-create.component.ts => +video-channels/video-channel-edit/video-channel-create.component.ts} (94%) create mode 100644 client/src/app/+video-channels/video-channel-edit/video-channel-edit.component.html rename client/src/app/{+my-library/+my-video-channels/my-video-channel-edit.component.scss => +video-channels/video-channel-edit/video-channel-edit.component.scss} (96%) rename client/src/app/{+my-library/+my-video-channels/my-video-channel-edit.ts => +video-channels/video-channel-edit/video-channel-edit.ts} (100%) rename client/src/app/{+my-library/+my-video-channels/my-video-channel-update.component.ts => +video-channels/video-channel-edit/video-channel-update.component.ts} (92%) diff --git a/client/src/app/+my-library/+my-video-channels/my-video-channel-edit.component.html b/client/src/app/+my-library/+my-video-channels/my-video-channel-edit.component.html deleted file mode 100644 index 2910dffad..000000000 --- a/client/src/app/+my-library/+my-video-channels/my-video-channel-edit.component.html +++ /dev/null @@ -1,112 +0,0 @@ - - -