mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #588 from sharelatex/ja-restrict-front-widget
Add Dropbox test for Front widget too
This commit is contained in:
commit
1849fcb70a
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ module.exports = ProjectController =
|
|||
else
|
||||
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
|
||||
sampleFreeUser = parseInt(user._id.toString().slice(-2), 16) < freeUserProportion * 255
|
||||
showFrontWidget = paidUser or sampleFreeUser
|
||||
|
|
Loading…
Reference in a new issue