Add Dropbox test for Front widget too

This commit is contained in:
James Allen 2018-05-24 09:51:29 +01:00
parent 87f99f1cdc
commit 7bcd285bb1

View file

@ -194,7 +194,7 @@ module.exports = ProjectController =
else else
viewModel.showUserDetailsArea = false viewModel.showUserDetailsArea = false
paidUser = user.features?.github # use a heuristic for paid account paidUser = user.features?.github and user.features?.dropbox # use a heuristic for paid account
freeUserProportion = 0.10 freeUserProportion = 0.10
sampleFreeUser = parseInt(user._id.toString().slice(-2), 16) < freeUserProportion * 255 sampleFreeUser = parseInt(user._id.toString().slice(-2), 16) < freeUserProportion * 255
showFrontWidget = paidUser or sampleFreeUser showFrontWidget = paidUser or sampleFreeUser