Only start profiles in edit mode if they are yours.

This commit is contained in:
Nick Winter 2014-06-08 11:52:16 -06:00
parent 89888b0502
commit 6597b687eb

View file

@ -70,7 +70,7 @@ module.exports = class ProfileView extends View
context.allowedToEditJobProfile = @user and (me.isAdmin() or (context.myProfile && !me.get('anonymous')))
context.profileApproved = @user?.get 'jobProfileApproved'
context.progress = @progress ? @updateProgress()
@editing ?= context.progress < 0.8
@editing ?= context.myProfile and context.progress < 0.8
context.editing = @editing
context.marked = marked
context.moment = moment