Open ptanov opened 8 years ago
Blocked by #13
Current way to do this:
SeAuthenticationService.addAuthenticationListener({
onLogged: function(member) {
SeAjaxHelperService.fixRestangularUrl(member.company, Restangular.one(REST.COMPANIES, member.company.id));
});
}
vvvvvv // in config: // SeAjaxHelperService.fixRestangularUrl(response, $injector.get("MembersService").$membersOneRest(response.id)); ^^^^ return $q.when(response); }