Merge pull request #1491 from coreos-inc/fix-delete-role

Fix deletion of roles
This commit is contained in:
josephschorr 2016-05-24 12:59:17 -04:00
commit f3d9f76b22

View file

@ -32,10 +32,10 @@ angular.module('quay').factory('RolesService', ['UtilService', 'Restangular', 'A
callback(false);
});
var endpoint = getPermissionEndpoint(repository, entityName, kind);
var endpoint = getPermissionEndpoint(repository, entityName, entityKind);
endpoint.customDELETE().then(function() {
callback(true);
}, errorHandler);
}, errorDisplay);
};
roleService.setRepositoryRole = function(repository, role, entityKind, entityName, callback) {