Change permissions adding from a POST to a PUT

This commit is contained in:
Joseph Schorr 2014-03-17 15:05:55 -04:00
parent d0d8ce9057
commit d4cf7df9cf

View file

@ -1266,7 +1266,7 @@ function RepoAdminCtrl($scope, Restangular, ApiService, KeyService, $routeParams
};
var permissionPost = Restangular.one(getRestUrl('repository', namespace, name, 'permissions', kind, entityName));
permissionPost.customPOST(permission).then(function(result) {
permissionPost.customPUT(permission).then(function(result) {
$scope.permissions[kind][entityName] = result;
}, function(result) {
$('#cannotchangeModal').modal({});