File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -813,9 +813,10 @@ class BucketSpaceFS extends BucketSpaceSimpleFS {
813
813
`arn:aws:s3:::${ bucket . name . unwrap ( ) } ${ bucket_path } ` ,
814
814
undefined
815
815
) ;
816
+ if ( permission_by_id === "DENY" ) return false ;
816
817
// we (currently) allow account identified to be both id and name,
817
818
// so if by-id failed, try also name
818
- if ( account . owner === undefined && permission_by_id !== 'DENY' ) {
819
+ if ( account . owner === undefined ) {
819
820
permission_by_name = await bucket_policy_utils . has_bucket_policy_permission (
820
821
bucket_policy ,
821
822
account . name . unwrap ( ) ,
@@ -824,8 +825,7 @@ class BucketSpaceFS extends BucketSpaceSimpleFS {
824
825
undefined
825
826
) ;
826
827
}
827
-
828
- if ( permission_by_id === 'DENY' || permission_by_name === 'DENY' ) return false ;
828
+ if ( permission_by_name === 'DENY' ) return false ;
829
829
return is_owner || ( permission_by_id === 'ALLOW' || permission_by_name === 'ALLOW' ) ;
830
830
}
831
831
You can’t perform that action at this time.
0 commit comments