Fix displaying synced at time on the profile page

This commit is contained in:
Piotr Sarnacki 2016-01-05 12:23:33 +01:00
parent 6ee82c0cf8
commit b57adacf02

View File

@ -134,7 +134,7 @@ export default Ember.Service.extend({
return this.get('ajax').get("/users/" + user.id).then( (data) => {
var userRecord;
if (data.user.correct_scopes) {
userRecord = this.loadUser(data.user);
userRecord = this.loadUser(data.user)
userRecord.get('permissions');
if (this.get('signedIn')) {
data.user.token = user.token;