fix the bug when the expiration dates can't be removed from link permissions

This commit is contained in:
Roman Perekhod
2024-02-08 21:56:14 +01:00
committed by Ralf Haferkamp
parent 4b1b1c24c8
commit fb5f29c537
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
Bugfix: graph/drives/permission Expiration date update
We fixed a bug in the Update sharing permission the expiration dates can't be removed from link permissions.
https://github.com/owncloud/ocis/pull/8413
https://github.com/owncloud/ocis/issues/8405

View File

@@ -202,7 +202,7 @@ func (g Graph) libreGraphPermissionFromCS3PublicShare(createdLink *link.PublicSh
}
func parseAndFillUpTime(t *time.Time) *types.Timestamp {
if t == nil {
if t == nil || t.IsZero() {
return nil
}