diff options
author | kontrollanten <6680299+kontrollanten@users.noreply.github.com> | 2021-12-13 15:29:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-13 15:29:13 +0100 |
commit | a37e9e74ff07b057370d1ed6c0b391a02be8a6d2 (patch) | |
tree | 30d59e12518149a309bbd10bee1485f8be523c75 /client/src/app/+my-library/+my-video-channels/my-video-channel-edit.component.scss | |
parent | 11e520b50d791a0dd48cbb2d0fc681b25eb7cd53 (diff) | |
download | PeerTube-a37e9e74ff07b057370d1ed6c0b391a02be8a6d2.tar.gz PeerTube-a37e9e74ff07b057370d1ed6c0b391a02be8a6d2.tar.zst PeerTube-a37e9e74ff07b057370d1ed6c0b391a02be8a6d2.zip |
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 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>
Diffstat (limited to 'client/src/app/+my-library/+my-video-channels/my-video-channel-edit.component.scss')
-rw-r--r-- | client/src/app/+my-library/+my-video-channels/my-video-channel-edit.component.scss | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/client/src/app/+my-library/+my-video-channels/my-video-channel-edit.component.scss b/client/src/app/+my-library/+my-video-channels/my-video-channel-edit.component.scss deleted file mode 100644 index d8bfe71b6..000000000 --- a/client/src/app/+my-library/+my-video-channels/my-video-channel-edit.component.scss +++ /dev/null | |||
@@ -1,73 +0,0 @@ | |||
1 | @use '_variables' as *; | ||
2 | @use '_mixins' as *; | ||
3 | |||
4 | label { | ||
5 | font-weight: $font-regular; | ||
6 | font-size: 100%; | ||
7 | } | ||
8 | |||
9 | .video-channel-title { | ||
10 | @include settings-big-title; | ||
11 | } | ||
12 | |||
13 | my-actor-avatar-edit, | ||
14 | my-actor-banner-edit { | ||
15 | display: block; | ||
16 | margin-bottom: 20px; | ||
17 | } | ||
18 | |||
19 | my-actor-banner-edit { | ||
20 | max-width: 500px; | ||
21 | } | ||
22 | |||
23 | .input-group { | ||
24 | @include peertube-input-group(fit-content); | ||
25 | } | ||
26 | |||
27 | .input-group-append { | ||
28 | height: 30px; | ||
29 | } | ||
30 | |||
31 | input { | ||
32 | &[type=text] { | ||
33 | @include peertube-input-text(340px); | ||
34 | |||
35 | display: block; | ||
36 | |||
37 | &#name { | ||
38 | width: auto; | ||
39 | flex-grow: 1; | ||
40 | } | ||
41 | } | ||
42 | |||
43 | &[type=submit] { | ||
44 | @include peertube-button; | ||
45 | @include orange-button; | ||
46 | @include margin-left(auto); | ||
47 | } | ||
48 | } | ||
49 | |||
50 | textarea { | ||
51 | @include peertube-textarea(500px, 150px); | ||
52 | |||
53 | display: block; | ||
54 | } | ||
55 | |||
56 | .peertube-select-container { | ||
57 | @include peertube-select-container(340px); | ||
58 | } | ||
59 | |||
60 | .breadcrumb { | ||
61 | @include breadcrumb; | ||
62 | } | ||
63 | |||
64 | @media screen and (max-width: $small-view) { | ||
65 | input[type=text]#name { | ||
66 | width: auto !important; | ||
67 | } | ||
68 | |||
69 | label[for=name] + div, | ||
70 | textarea { | ||
71 | width: 100%; | ||
72 | } | ||
73 | } | ||