Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Storage
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
System
Storage
Commits
aa001dce
Commit
aa001dce
authored
2 years ago
by
Yauheni Lesnikau
Browse files
Options
Downloads
Patches
Plain Diff
add owner permission checking to hasViewerAccessToRecord in CloudStorageImpl of Azure CSP
parent
d6d39c93
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!744
Upgraded packages to mitigated vulns in netty, guava, snakeyaml
,
!606
add owner permission checking to hasViewerAccessToRecord in CloudStorageImpl of Azure CSP
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
provider/storage-azure/src/main/java/org/opengroup/osdu/storage/provider/azure/CloudStorageImpl.java
+5
-2
5 additions, 2 deletions
...engroup/osdu/storage/provider/azure/CloudStorageImpl.java
with
5 additions
and
2 deletions
provider/storage-azure/src/main/java/org/opengroup/osdu/storage/provider/azure/CloudStorageImpl.java
+
5
−
2
View file @
aa001dce
...
...
@@ -240,8 +240,11 @@ public class CloudStorageImpl implements ICloudStorage {
});
boolean
isEntitledForViewing
=
dataEntitlementsService
.
hasAccessToData
(
headers
,
new
HashSet
<>(
Arrays
.
asList
(
acls
)));
boolean
isRecordOwner
=
record
.
getUser
().
equalsIgnoreCase
(
headers
.
getUserEmail
());
return
isEntitledForViewing
||
isRecordOwner
;
boolean
isRecordCreator
=
record
.
getUser
().
equalsIgnoreCase
(
headers
.
getUserEmail
());
if
(!
isEntitledForViewing
&&
!
isRecordCreator
)
{
return
hasOwnerAccessToRecord
(
record
);
}
return
true
;
}
private
boolean
hasOwnerAccessToRecord
(
RecordMetadata
record
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment