Skip to content
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

Allow listing received Shares by service accounts #4244

Merged
merged 2 commits into from Oct 11, 2023

Conversation

kobergj
Copy link
Contributor

@kobergj kobergj commented Oct 10, 2023

Allows listing received shares by service account users

@kobergj kobergj changed the title Allow listing receviced Shares by service accounts Allow listing received Shares by service accounts Oct 10, 2023
@kobergj kobergj force-pushed the ListReceivedSharesByServiceAccounts branch 2 times, most recently from 8bedfcd to 8f830c3 Compare October 10, 2023 12:33
Signed-off-by: jkoberg <jkoberg@owncloud.com>
@kobergj kobergj force-pushed the ListReceivedSharesByServiceAccounts branch from 8f830c3 to 9dc752b Compare October 10, 2023 13:00
Copy link
Contributor

@aduffeck aduffeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm besides the one nit-pick.

var rss []*collaboration.ReceivedShare
m.lock.Lock()
defer m.lock.Unlock()
user := ctxpkg.ContextMustGetUser(ctx)
if user.GetId().GetType() == userv1beta1.UserType_USER_TYPE_SERVICE {
// TODO: gateway missing!
// u, err := utils.GetUser(forUser, nil)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think the commented code is helpful? I think I would rather leave it out, it's not that hard to figure it out when actually doing the refactoring.

Signed-off-by: jkoberg <jkoberg@owncloud.com>
@kobergj kobergj merged commit b16ab92 into cs3org:edge Oct 11, 2023
9 checks passed
@kobergj kobergj deleted the ListReceivedSharesByServiceAccounts branch October 11, 2023 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants