Skip to content

Commit

Permalink
only load gameplay leaderboard if logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Oct 9, 2018
1 parent a37f3a2 commit 76f56b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local t =
Widg.Container {
y = SCREEN_HEIGHT / 10
}
local leaderboardEnabled = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).leaderboardEnabled
local leaderboardEnabled = playerConfig:get_data(pn_to_profile_slot(PLAYER_1)).leaderboardEnabled and DLMAN:IsLoggedIn()
if not leaderboardEnabled then
return t
end
Expand Down

0 comments on commit 76f56b4

Please sign in to comment.