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
Chocobozzz
4c7e60bc17
Reorganize imports
2021-07-20 15:27:19 +02:00
Chocobozzz
c0e8b12e7f
Refactor requests
2021-07-20 15:27:18 +02:00
Chocobozzz
254d3579f5
Use an object to represent a server
2021-07-20 15:27:18 +02:00
Chocobozzz
89d241a79c
Shorter server command names
2021-07-20 15:27:18 +02:00
Chocobozzz
d23dd9fbfc
Introduce videos command
2021-07-20 15:27:18 +02:00
Chocobozzz
7926c5f9b3
Introduce user command
2021-07-20 15:27:18 +02:00
Chocobozzz
41d1d07501
Introduce login command
2021-07-20 15:27:18 +02:00
Chocobozzz
9293139fde
Introduce sql command
2021-07-20 15:27:18 +02:00
Chocobozzz
a54618880c
Introduce channels command
2021-07-20 15:27:18 +02:00
Chocobozzz
06c2759338
Fix hooks definition
2021-07-01 16:47:14 +02:00
Chocobozzz
e024fd6a74
Update channel updatedAt when uploading a video
2021-05-10 09:38:11 +02:00
Chocobozzz
84531547bc
Add size info in db for actor images
2021-04-08 13:38:04 +02:00
Chocobozzz
cdeddff142
Add ability to update the banner
2021-04-08 10:07:53 +02:00
Chocobozzz
213e30ef90
Add banner tests
2021-04-08 10:07:53 +02:00
Rigel Kent
7b3909644d
test search for subscriptions and video-channels
2020-07-29 18:15:53 +02:00
Chocobozzz
8eb07b0130
Split notification tests
2020-06-16 15:55:42 +02:00
Chocobozzz
1ba471c55f
Add videos count in channels list
2020-06-16 14:13:01 +02:00
Chocobozzz
5a61ffbb7c
Optimize views per day in video channels
2020-06-12 16:27:41 +02:00
Rigel Kent
3d527ba173
Use inner join and document code for viewr stats for channels
2020-03-31 10:29:24 +02:00
Rigel Kent
714bfcc556
Tests for viewsPerDay
2020-03-31 10:29:24 +02:00
Chocobozzz
a15871560f
Move to eslint
2020-02-03 08:31:02 +01:00
Chocobozzz
7d14d4d2ca
Server: Bulk update videos support field
2019-05-31 16:44:46 +02:00
Chocobozzz
57cfff7885
Remove unused actor uuid field
2019-05-31 14:49:31 +02:00
Chocobozzz
91b6631984
Add pagination to account video channels endpoint
2019-05-29 15:09:38 +02:00
Chocobozzz
48f07b4a40
All API tests in parallel
2019-05-15 15:14:21 +02:00
Chocobozzz
7243f84db0
Redundancy and search tests in parallel too
2019-05-14 15:37:43 +02:00
Chocobozzz
7c3b79768b
Use test wrapper exit function
2019-04-24 16:26:25 +02:00
Chocobozzz
210feb6cc4
Cleanup tests
2019-04-24 16:26:23 +02:00
Chocobozzz
94565d52bb
Shared utils -> extra-utils
...
Because they need dev dependencies
2019-04-24 16:25:52 +02:00
Chocobozzz
1eddc9a74f
Add user adminFlags
2019-04-15 14:39:52 +02:00
buoyantair
bc22d60899
Merge branch 'develop' of https://github.com/Chocobozzz/PeerTube into move-utils-to-shared
2018-11-20 12:28:13 +05:30
Chocobozzz
d175a6f7ab
Cleanup tests imports
2018-11-19 17:08:18 +01:00
buoyantair
9639bd1757
Move utils to /shared
...
Move utils used by /server/tools/* & /server/tests/**/* into
/shared folder.
Issue: #1336
2018-10-29 22:18:31 +05:30
Chocobozzz
8a19bee1a1
Add ability to set a name to a channel
2018-08-27 09:41:54 +02:00
Chocobozzz
4bbfc6c606
API: Add ability to update video channel avatar
2018-06-29 11:29:23 +02:00
Chocobozzz
3cd0734fd9
Improve tests when waiting pending jobs
2018-06-13 10:22:53 +02:00
Chocobozzz
ad9e39fb81
Only use account name in routes
2018-05-25 10:41:07 +02:00
Chocobozzz
0f320037e6
Add ability to update a video channel
2018-05-11 15:25:51 +02:00
Chocobozzz
08c1efbe32
Add video channel management
2018-04-26 16:18:01 +02:00
Chocobozzz
cc918ac3f4
Update video-channel routes (again)
...
Use /video-channels now, it's more simple for clients
2018-04-25 16:16:21 +02:00
Chocobozzz
6b738c7a31
Video channel API routes refractor
2018-04-25 13:50:48 +02:00
Chocobozzz
48dce1c90d
Update video channel routes
2018-04-24 17:12:57 +02:00
Chocobozzz
2422c46b27
Implement support field in video and video channel
2018-02-15 15:29:07 +01:00
Chocobozzz
e212f88714
Increase tests timeout
2018-01-18 18:10:45 +01:00
Chocobozzz
7bc2917145
Add tests to handle down server
2018-01-11 11:47:44 +01:00
Chocobozzz
c5d31dba56
Tests directories refractor
2017-12-28 13:59:22 +01:00