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

Add missing expiry in shares #3895

Merged

Conversation

dragonchaser
Copy link

@dragonchaser dragonchaser commented May 16, 2023

We have added expiry dates to the shares

refs owncloud/ocis#5442

Signed-off-by: Christian Richter <crichter@owncloud.com>
@dragonchaser dragonchaser force-pushed the issue-5442-missing-expiry-in-shares branch from f38cc8e to 6dbcdcc Compare May 16, 2023 14:55
Comment on lines 1424 to 1427
req.Grant.Expiration = &types.Timestamp{
Seconds: uint64(ts.Unix()),
Nanos: 0,
}
Copy link
Contributor

Choose a reason for hiding this comment

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

There is utils.TimeToTS which could do this for you. But not critical.

Copy link
Author

Choose a reason for hiding this comment

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

Thx, did not know that, incorporated it.

Signed-off-by: Christian Richter <crichter@owncloud.com>
@dragonchaser dragonchaser merged commit de5cc4a into cs3org:edge May 17, 2023
@dragonchaser dragonchaser deleted the issue-5442-missing-expiry-in-shares branch May 17, 2023 08:22
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.

2 participants