INNER CODE UNIT · JavaScript

grantsToAdd

infrahq/infra · ui/pages/destinations/[id]/index.js:868

                      const grantsToAdd = selectedResources.map(r => {
                        return {
                          user,
                          group,
                          privilege,
                          resource:
                            r === ''
                              ? destination?.name
                              : `${destination?.name}.${r}`,
                        }
                      })

                      await fetch('/api/grants', {
                        method: 'PATCH',
                        body: JSON.stringify({
                          grantsToAdd,
                        }),
                      })

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…