Skip to content

Commit 528a6e2

Browse files
authored
Merge pull request #8292 from liranmauda/liran-RESTRICT_RESOURCE_DELETION
loading RESTRICT_RESOURCE_DELETION from env variable
2 parents 9ad0d45 + 10c7289 commit 528a6e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ config.DB_CLEANER_MAX_TOTAL_DOCS = 10000;
417417
// CLOUD RESOURCES //
418418
/////////////////////
419419
// This parameter is used to toggle pool deletion checks that enforce that only the pool and system owners can delete the pool
420-
config.RESTRICT_RESOURCE_DELETION = false;
420+
config.RESTRICT_RESOURCE_DELETION = process.env.RESTRICT_RESOURCE_DELETION === 'true';
421421
// EXPERIMENTAL!! switch to turn off the use of signed urls to delegate cloud read\writes to object_io (s3 compatible only)
422422
// when this is set to true, block_store_s3 will return s3 credentials to the block_store_client so it can
423423
// connect directly to the cloud target (and not via a signed url)

0 commit comments

Comments
 (0)