Skip to content

Commit

Permalink
fix(ui/dashboard): Determine if a task a resolvable (#262)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Martinez <[email protected]>
  • Loading branch information
simonmartinez authored May 4, 2021
1 parent 33bf274 commit c340df6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 4 additions & 5 deletions ui/dashboard/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export class RequestService {
isResolvable(task: Task, meta: Meta, allowedResolverUsernames: string[]): boolean {
return !task.resolution && task.state !== 'WONTFIX' &&
(
meta.user_is_admin || (allowedResolverUsernames || []).indexOf(meta.username) > -1 || (task.resolver_usernames || []).indexOf(meta.username) > -1
meta.user_is_admin ||
(allowedResolverUsernames ?? []).indexOf(meta.username) > -1 ||
(task.resolver_usernames ?? []).indexOf(meta.username) > -1
);
}
}

0 comments on commit c340df6

Please sign in to comment.