Only return the team and repo permissions when listing robots when we absolutely need them.
This commit is contained in:
parent
561f2c7db0
commit
f858caf6cd
4 changed files with 81 additions and 34 deletions
|
@ -143,8 +143,12 @@ angular.module('quay').directive('robotsManager', function () {
|
|||
if (!$scope.user && !$scope.organization) { return; }
|
||||
if ($scope.loading || !$scope.isEnabled) { return; }
|
||||
|
||||
var params = {
|
||||
'permissions': true
|
||||
};
|
||||
|
||||
$scope.loading = true;
|
||||
ApiService.getRobots($scope.organization).then(function(resp) {
|
||||
ApiService.getRobots($scope.organization, null, params).then(function(resp) {
|
||||
$scope.robots = resp.robots;
|
||||
$scope.loading = false;
|
||||
|
||||
|
|
Reference in a new issue