Compare commits

...

1 Commits

Author SHA1 Message Date
Maha Benzekri 2902e7fd13
Fixup for retention 2023-12-26 14:42:48 +01:00
1 changed files with 6 additions and 2 deletions

View File

@ -303,8 +303,12 @@ function checkUserGovernanceBypass(request, authInfo, bucketMD, objectKey, log,
if (err) { if (err) {
return cb(err); return cb(err);
} }
const explicitDenyExists = authorizationResults.some( const explicitDenyExists = authorizationResults.some(authzResult => {
authzResult => authzResult.isAllowed === false && authzResult.isImplicit === false); if (authzResult.hasOwnProperty('isImplicit')) {
return authzResult.isAllowed === false && authzResult.isImplicit === false;
}
return authzResult.isAllowed === false;
});
if (explicitDenyExists) { if (explicitDenyExists) {
log.trace('authorization check failed for user', log.trace('authorization check failed for user',
{ {