mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-06 03:27:39 +00:00
check user isn't null in project controller
This commit is contained in:
parent
6318d9ace1
commit
cd683cc719
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ module.exports = class ProjectController
|
|||
trackChanges: false
|
||||
else
|
||||
anonymous = false
|
||||
SubscriptionLocator.getUsersSubscription user._id, (err, subscription)->
|
||||
SubscriptionLocator.getUsersSubscription user?._id, (err, subscription)->
|
||||
SecurityManager.userCanAccessProject user, project, (canAccess, privlageLevel)->
|
||||
allowedFreeTrial = true
|
||||
if subscription? and subscription.freeTrial? and subscription.freeTrial.expiresAt?
|
||||
|
|
Loading…
Add table
Reference in a new issue