-
Notifications
You must be signed in to change notification settings - Fork 189
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
add permissions to the graph drives #3095
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
d0a98da
to
5950345
Compare
💥 Acceptance test Core-API-Tests-ocis-storage-10 failed. Further test are cancelled... |
b8b240e
to
20204cb
Compare
20204cb
to
5668a43
Compare
Kudos, SonarCloud Quality Gate passed! |
for id, perm := range m { | ||
// This temporary variable is necessary since we need to pass a pointer to the | ||
// libregraph.Identity and if we pass the pointer from the loop every identity | ||
// will have the same id. |
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.
nice workaround
tmp := id | ||
identity := libregraph.IdentitySet{User: &libregraph.Identity{Id: &tmp}} | ||
switch { | ||
case perm.AddGrant: |
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.
so AddGrant
is our reverse engineering criterium for the manager role.
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.
Yes, exactly. That's currently the only way.
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, let us add an odata query later
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.
Looks good! Just wondering why the changes to expected-failures
and go.mod
still appear. They are already in master 😄
Description
Added permissions to graph drives when listing drives.
A drive looks like this after this change:
Motivation and Context
We want to see who has access to a space.
Types of changes
Checklist: