Skip to content

Commit

Permalink
Block content for anonymous users
Browse files Browse the repository at this point in the history
  • Loading branch information
sahanljc committed Sep 9, 2020
1 parent 135afce commit 41d4c41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed

- Blocked content for anonymous users

## [1.1.0] - 2020-08-13

### Added
Expand Down
2 changes: 1 addition & 1 deletion react/BlockChallenge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const isProfileAllowed = (sessionResponse: SessionResponse | undefined) => {

const isLoggedIn = (sessionResponse as Session).namespaces?.profile?.email

if (hasAccessToTradePolicy) {
if (isLoggedIn && hasAccessToTradePolicy) {
return 'authorized'
}

Expand Down

0 comments on commit 41d4c41

Please sign in to comment.