File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -361,9 +361,7 @@ const controller = {
361361 userId : userId
362362 } ;
363363 // Update S3 Policy
364- await storageService . updatePublic ( data ) . catch ( ( e ) => {
365- log . warn ( 'Failed to apply permission changes to S3 ' + e , { function : 'togglePublic' , ...data } ) ;
366- } ) ;
364+ await storageService . updatePublic ( data ) ;
367365
368366 // Child bucket cannot be non-public when parent is public
369367 const parents = await bucketService . searchParentBuckets ( bucket ) ;
Original file line number Diff line number Diff line change @@ -562,7 +562,7 @@ const objectStorageService = {
562562 `coms::${ resource } ` . startsWith ( policy . Sid ) &&
563563 `coms::${ resource } ` !== policy . Sid ) ;
564564 if ( parentPolicy ) {
565- throw new Error ( `Unable to override Public status set on folder : ${ parentPolicy . Resource } ` ) ;
565+ return Promise . reject ( new Error ( `Unable to override Public status set on path : ${ parentPolicy . Resource } ` ) ) ;
566566 }
567567 } catch ( e ) {
568568 log . debug ( 'No existing policy found' , { function : 'updatePublic' } ) ;
You can’t perform that action at this time.
0 commit comments