Skip to content

Commit

Permalink
Hotfix (#344)
Browse files Browse the repository at this point in the history
* Fix bus permissions (#343)
  • Loading branch information
pierreTklein authored Jan 18, 2019
1 parent 539457e commit 0f49523
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/util/UserInfoHelperFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,11 @@ export function canAccessTeam(hacker?: IHacker): boolean {
}

export function canAccessBus(hacker?: IHacker): boolean {
return hacker ? Boolean(hacker.needsBus) : false;
return hacker
? Boolean(hacker.needsBus) &&
(status === HackerStatus.HACKER_STATUS_APPLIED ||
status === HackerStatus.HACKER_STATUS_ACCEPTED ||
status === HackerStatus.HACKER_STATUS_CONFIRMED ||
status === HackerStatus.HACKER_STATUS_CHECKED_IN)
: false;
}

0 comments on commit 0f49523

Please sign in to comment.