From d4cf7df9cfb06861425fa7ee1836017fcee0c9f7 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 17 Mar 2014 15:05:55 -0400 Subject: [PATCH] Change permissions adding from a POST to a PUT --- static/js/controllers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/controllers.js b/static/js/controllers.js index 114118274..c539e3bd5 100644 --- a/static/js/controllers.js +++ b/static/js/controllers.js @@ -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({});