mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add Dropbox test for Front widget too
This commit is contained in:
parent
87f99f1cdc
commit
7bcd285bb1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue