diff options
Diffstat (limited to 'server/lib/views/index.js')
| -rw-r--r-- | server/lib/views/index.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/lib/views/index.js b/server/lib/views/index.js index 637b061..5b1a72e 100644 --- a/server/lib/views/index.js +++ b/server/lib/views/index.js @@ -165,6 +165,7 @@ var views = module.exports = { function done(err, user, projects){ if (! user) { return res.redirect('/') } res.render('profile', { + isOwnProfile: String(user._id) == (req.user && String(req.user._id)), profile: user, projects: projects || [], }) |
