-
Notifications
You must be signed in to change notification settings - Fork 1
restrict the possibility for the role_viewer to see the details of security #821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
restrict the possibility for the role_viewer to see the details of security #821
Conversation
0d54122 to
c51ee71
Compare
...et/src/integrationTest/kotlin/com/cosmotech/dataset/service/DatasetServiceIntegrationTest.kt
Outdated
Show resolved
Hide resolved
be4716c to
fd058b5
Compare
modified tests in all services after role_viewer got the right to read security
added check in each services for each returned objects containing security if security was returned and the user has the role viewer then only minimal informations on security are returned default security is unchanged, the access control list contains only the user with the role viewer
fd058b5 to
fb4b166
Compare
dataset/src/test/kotlin/com/cosmotech/dataset/service/DatasetServiceImplTests.kt
Fixed
Show fixed
Hide fixed
jreynard-code
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lots of remarks, but don't be afraid, there are a lot of duplication.
Feel free to change one module at a time and I will double check that with you each time.
Good job btw ;)
runner/src/integrationTest/kotlin/com/cosmotech/runner/service/RunnerServiceIntegrationTest.kt
Outdated
Show resolved
Hide resolved
runner/src/integrationTest/kotlin/com/cosmotech/runner/service/RunnerServiceIntegrationTest.kt
Show resolved
Hide resolved
runner/src/integrationTest/kotlin/com/cosmotech/runner/service/RunnerServiceIntegrationTest.kt
Show resolved
Hide resolved
runner/src/main/kotlin/com/cosmotech/runner/service/RunnerApiServiceImpl.kt
Outdated
Show resolved
Hide resolved
runner/src/main/kotlin/com/cosmotech/runner/service/RunnerApiServiceImpl.kt
Outdated
Show resolved
Hide resolved
workspace/src/main/kotlin/com/cosmotech/workspace/service/WorkspaceServiceImpl.kt
Outdated
Show resolved
Hide resolved
workspace/src/main/kotlin/com/cosmotech/workspace/service/WorkspaceServiceImpl.kt
Outdated
Show resolved
Hide resolved
workspace/src/main/kotlin/com/cosmotech/workspace/service/WorkspaceServiceImpl.kt
Outdated
Show resolved
Hide resolved
workspace/src/main/kotlin/com/cosmotech/workspace/service/WorkspaceServiceImpl.kt
Outdated
Show resolved
Hide resolved
workspace/src/main/kotlin/com/cosmotech/workspace/service/WorkspaceServiceImpl.kt
Outdated
Show resolved
Hide resolved
ee7d78d to
bbc22a4
Compare
bbc22a4 to
7e7a2c0
Compare
jreynard-code
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A simple remark that I missed at first sight.
Except that, GG ;)
dataset/src/main/kotlin/com/cosmotech/dataset/service/DatasetServiceImpl.kt
Outdated
Show resolved
Hide resolved
7e7a2c0 to
4e34baa
Compare
jreynard-code
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
restrict the possibility for the role_viewer to see the details of security