Skip to content
Snippets Groups Projects
Commit 8150e99c authored by Allen Gilliland's avatar Allen Gilliland
Browse files

get admin people section working again.

parent f3a108cf
Branches
Tags
No related merge requests found
......@@ -61,7 +61,7 @@ PeopleControllers.controller('PeopleList', ['$scope', 'User',
userId: userId
}, function(result) {
for (var i = 0; i < $scope.people.length; i++) {
if($scope.people[i].user.id === userId) {
if($scope.people[i].id === userId) {
$scope.people.splice(i, 1);
break;
}
......
......@@ -781,6 +781,10 @@ CoreServices.factory('Session', ['$resource', '$cookies', function($resource, $c
CoreServices.factory('User', ['$resource', '$cookies', function($resource, $cookies) {
return $resource('/api/user/:userId', {}, {
create: {
url: '/api/user',
method: 'POST'
},
list: {
url: '/api/user/',
method: 'GET',
......@@ -811,6 +815,12 @@ CoreServices.factory('User', ['$resource', '$cookies', function($resource, $cook
params: {
'userId': '@id'
}
},
delete: {
method: 'DELETE',
params: {
'userId': '@userId'
}
}
});
}]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment