mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Only start profiles in edit mode if they are yours.
This commit is contained in:
parent
89888b0502
commit
6597b687eb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue