diff options
author | Chocobozzz <me@florianbigard.com> | 2018-09-19 17:42:16 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-09-19 17:42:16 +0200 |
commit | f41d6aacdf3b67e0c8d4e7a599b331d90aa607b7 (patch) | |
tree | bba985585e1146090f6fdb3ef3ed9b4869f4cda5 /server/helpers/custom-validators/video-ownership.ts | |
parent | 993cef4b6e000ee425087e5195dfe40cd0840243 (diff) | |
download | PeerTube-f41d6aacdf3b67e0c8d4e7a599b331d90aa607b7.tar.gz PeerTube-f41d6aacdf3b67e0c8d4e7a599b331d90aa607b7.tar.zst PeerTube-f41d6aacdf3b67e0c8d4e7a599b331d90aa607b7.zip |
Fix jobs tests
Diffstat (limited to 'server/helpers/custom-validators/video-ownership.ts')
-rw-r--r-- | server/helpers/custom-validators/video-ownership.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/custom-validators/video-ownership.ts b/server/helpers/custom-validators/video-ownership.ts index aaa0c736b..a7771e07b 100644 --- a/server/helpers/custom-validators/video-ownership.ts +++ b/server/helpers/custom-validators/video-ownership.ts | |||
@@ -31,7 +31,7 @@ export function checkUserCanTerminateOwnershipChange ( | |||
31 | videoChangeOwnership: VideoChangeOwnershipModel, | 31 | videoChangeOwnership: VideoChangeOwnershipModel, |
32 | res: Response | 32 | res: Response |
33 | ): boolean { | 33 | ): boolean { |
34 | if (videoChangeOwnership.NextOwner.userId === user.Account.userId) { | 34 | if (videoChangeOwnership.NextOwner.userId === user.id) { |
35 | return true | 35 | return true |
36 | } | 36 | } |
37 | 37 | ||