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
+1 -1
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
}