revert(requests): go back to old modifiedBy request values for now

pull/1714/head
sct 4 years ago
parent 60c3ced9e2
commit 0918b25413
No known key found for this signature in database
GPG Key ID: 77D146606D30DCCD

@ -293,7 +293,20 @@ requestRoutes.post('/', async (req, res, next) => {
)
? MediaRequestStatus.APPROVED
: MediaRequestStatus.PENDING,
modifiedBy: requestUser.id === req.user?.id ? undefined : req.user,
modifiedBy: req.user?.hasPermission(
[
req.body.is4k
? Permission.AUTO_APPROVE_4K
: Permission.AUTO_APPROVE,
req.body.is4k
? Permission.AUTO_APPROVE_4K_MOVIE
: Permission.AUTO_APPROVE_MOVIE,
Permission.MANAGE_REQUESTS,
],
{ type: 'or' }
)
? req.user
: undefined,
is4k: req.body.is4k,
serverId: req.body.serverId,
profileId: req.body.profileId,

Loading…
Cancel
Save