Skip to content

Commit

Permalink
fix(ui): allow admin to edit requests
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Bétrancourt <thomas@betrancourt.net>
  • Loading branch information
rclsilver committed Aug 4, 2023
1 parent 6042fc2 commit 7b66b70
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ export class TaskComponent implements OnInit, OnDestroy {
return !!meta?.user_is_admin;
}));

readonly canEditRequest$ = combineLatest([this.resolution$, this._isResolver$]).pipe(map(([resolution, isResolver]) => {
if (!['TODO', 'PAUSED'].includes(resolution?.state)) {
readonly canEditRequest$ = combineLatest([this.task$, this._isResolver$]).pipe(map(([task, isResolver]) => {
if (!['TODO', 'PAUSED'].includes(task?.state)) {
return false;
}

Expand Down

0 comments on commit 7b66b70

Please sign in to comment.