summaryrefslogtreecommitdiff
path: root/server/lib/views/index.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-10-10 15:59:50 -0400
committerJules Laplace <jules@okfoc.us>2014-10-10 15:59:50 -0400
commite35d5df30c8106bc1f4bfcbd1ba0094d8e6bc642 (patch)
tree3a08b1f98211f554aa6ab49aa986ab236601f810 /server/lib/views/index.js
parente75bf50727b3ebdd142953c09117de38d3a5b174 (diff)
change profile avatar
Diffstat (limited to 'server/lib/views/index.js')
-rw-r--r--server/lib/views/index.js1
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 || [],
})