Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions server/entity/MediaRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export class MediaRequest {
}

// Apply overrides if the user is not an admin or has the "advanced request" permission
const useOverrides = !user.hasPermission([Permission.MANAGE_REQUESTS], {
const useOverrides = !requestUser.hasPermission([Permission.MANAGE_REQUESTS], {
type: 'or',
});

Expand Down Expand Up @@ -337,7 +337,7 @@ export class MediaRequest {
media,
requestedBy: requestUser,
// If the user is an admin or has the "auto approve" permission, automatically approve the request
status: user.hasPermission(
status: requestUser.hasPermission(
[
requestBody.is4k
? Permission.AUTO_APPROVE_4K
Expand Down Expand Up @@ -447,7 +447,7 @@ export class MediaRequest {
media,
requestedBy: requestUser,
// If the user is an admin or has the "auto approve" permission, automatically approve the request
status: user.hasPermission(
status: requestUser.hasPermission(
[
requestBody.is4k
? Permission.AUTO_APPROVE_4K
Expand Down Expand Up @@ -485,7 +485,7 @@ export class MediaRequest {
(sn) =>
new SeasonRequest({
seasonNumber: sn,
status: user.hasPermission(
status: requestUser.hasPermission(
[
requestBody.is4k
? Permission.AUTO_APPROVE_4K
Expand Down
Loading