Skip to content

Commit

Permalink
Merge pull request #9 from neuroforgede/wip/setup_registry_auth#main
Browse files Browse the repository at this point in the history
remove erroreneous deletion support for whitelisted networks
  • Loading branch information
s4ke authored Aug 9, 2024
2 parents 3ab72a8 + fb309e4 commit 0e0b5e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions swarmgate/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -632,9 +632,7 @@ export function setupRoutes(tenantLabelValue: string) {
router.delete('/:version?/networks/:id', async (req, res) => {
const networkId = req.params.id;

// get the service allow listed networks as well
// this is fine, read only only here.
if (await isOwnedNetwork(networkId, true)) {
if (await isOwnedNetwork(networkId)) {
try {
const network = docker.getNetwork(networkId);
await network.remove({});
Expand Down

0 comments on commit 0e0b5e4

Please sign in to comment.