Skip to content

Commit

Permalink
fix User UI
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingguzman committed Feb 24, 2017
1 parent d2d3d4a commit af7fe4e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/core/uis/user.js
Expand Up @@ -13,8 +13,10 @@ define(['app', 'core/UIComponent', 'core/UIView', 'core/t'], function(app, UICom
var Input = UIView.extend({
initialize: function(options) {
// If editing a new item, use the current user
if(options.model.isNew()){
options.value = app.authenticatedUserId;
if (options.model.isNew()) {
// @TODO: do we really need this object?
// Change to: app.users.getCurrentUser() (which is the authenticated user)
options.value = app.authenticatedUserId.id;
}

var user = app.users.get(options.value);
Expand Down

0 comments on commit af7fe4e

Please sign in to comment.