Skip to content

Commit

Permalink
Update for Angular 1.4, fixes #1262
Browse files Browse the repository at this point in the history
  • Loading branch information
adskjohn committed Jul 24, 2015
1 parent 7503731 commit 8f649a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/users/public/services/meanUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ angular.module('mean.users').factory('MeanUser', [ '$rootScope', '$http', '$loca
var encodedProfile = decodeURI(b64_to_utf8(response.token.split('.')[1]));
var payload = JSON.parse(encodedProfile);
this.user = payload;
var destination = $cookies.redirect;
var destination = $cookies.get('redirect');
if (this.user.roles.indexOf('admin') !== -1) this.isAdmin = true;
$rootScope.$emit('loggedin');
if (destination) {
Expand Down

0 comments on commit 8f649a3

Please sign in to comment.