Change permissions adding from a POST to a PUT
This commit is contained in:
parent
d0d8ce9057
commit
d4cf7df9cf
1 changed files with 1 additions and 1 deletions
|
@ -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({});
|
||||
|
|
Reference in a new issue