hunk.code_window: 		SetupUserServiceAccount(userID int, teamIDs []int, restrictDefaultNamespace bool) error
   		GetServiceAccount(tokendata *TokenData) (*v1.ServiceAccount, error)
   		GetServiceAccountBearerToken(userID int) (string, error)
   		CreateUserShellPod(ctx context.Context, serviceAccountName string) (*KubernetesShellPod, error)
   		StartExecProcess(token string, useAdminToken bool, namespace, podName, containerName string, command []string, stdin io.Reader, stdout io.Writer) error
   		NamespaceAccessPoliciesDeleteNamespace(namespace string) error
   		GetNodesLimits() (K8sNodesLimits, error)
   		GetNamespaceAccessPolicies() (map[string]K8sNamespaceAccessPolicy, error)
   		UpdateNamespaceAccessPolicies(accessPolicies map[string]K8sNamespaceAccessPolicy) error
  
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.after_edit: 		StartExecProcess(token string, useAdminToken bool, namespace, podName, containerName string, command []string, stdin io.Reader, stdout io.Writer, errChan chan error)
  
hunk.file_path: api/portainer.go
hunk.type: replace
file: angular.module('portainer.app').controller('GroupAccessController', [
    '$scope',
    '$state',
    '$transition$',
    'GroupService',
    'Notifications',
    function ($scope, $state, $transition$, GroupService, Notifications) {
      $scope.updateAccess = function () {
        $scope.state.actionInProgress = true;
        GroupService.updateGroup($scope.group, $scope.group.AssociatedEndpoints)
          .then(() => {
            Notifications.success('Access successfully updated');
            $state.reload();
          })
          .catch((err) => {
            $scope.state.actionInProgress = false;
            Notifications.error('Failure', err, 'Unable to update accesses');
          });
      };
  
      function initView() {
        var groupId = $transition$.params().id;
  
        $scope.state = { actionInProgress: false };
        GroupService.group(groupId)
          .then(function success(data) {
            $scope.group = data;
          })
          .catch(function error(err) {
            Notifications.error('Failure', err, 'Unable to load view');
          });
      }
  
      initView();
    },
  ]);
  