Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Allow to patch password/expires_at for permissions #4506

Merged
merged 4 commits into from
Jan 21, 2025
Merged

Conversation

nono
Copy link
Member

@nono nono commented Jan 9, 2025

No description provided.

@nono nono requested a review from Merkur39 January 9, 2025 16:27
@nono nono requested a review from a team as a code owner January 9, 2025 16:27
@nono nono force-pushed the patch-permissions branch from 0d9346c to bd682ef Compare January 13, 2025 16:53
nono added 4 commits January 21, 2025 09:30
This issue was discovered by @Merkur39. When creating an
io.cozy.permissions for a share by link, the expires_at field was set to
null in CouchDB, even if the field was declared as omitempty. A nil
pointer to a time.Time is not considered by Go as an empty value for a
field of the type interface{}. So, we need to use the empty value of
type interface{} instead to fix the JSON marshaling.
@nono nono force-pushed the patch-permissions branch from bf120d0 to 64f57e3 Compare January 21, 2025 08:41
Copy link
Member

@Merkur39 Merkur39 left a comment

Choose a reason for hiding this comment

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

Great! 👍

@nono nono merged commit 2a449b3 into master Jan 21, 2025
4 checks passed
@nono nono deleted the patch-permissions branch January 21, 2025 10:39
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants