delete users

This commit is contained in:
Athou
2013-03-30 11:37:57 +01:00
parent 5cafcdf2d8
commit df9e3f8780
13 changed files with 54 additions and 11 deletions

View File

@@ -292,4 +292,9 @@ module.controller('ManageUserCtrl', function($scope, $state, $stateParams,
});
});
};
$scope.delete = function() {
AdminUsersService.delete({id: $scope.user.id}, function() {
$state.transitionTo('admin.userlist');
});
};
});