From 13c9e2a38cfd6ceea20904bb98167bf904c65c34 Mon Sep 17 00:00:00 2001 From: charles Date: Mon, 17 Jul 2023 09:53:20 +0200 Subject: [PATCH] yet another typo... --- idm/share/client-front-configs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idm/share/client-front-configs.go b/idm/share/client-front-configs.go index 173e7ed0bb..700e9487d4 100644 --- a/idm/share/client-front-configs.go +++ b/idm/share/client-front-configs.go @@ -120,7 +120,7 @@ func (sc *Client) CheckCellOptionsAgainstConfigs(ctx context.Context, cell *rest if folders && !loopOptions.enableFolderInternal { return errors.Forbidden("folder.share-internal.forbidden", "You are not allowed to create Cells on folders") } - if loopOptions.CellsMaxExpiration > 0 && (cell.AccessEnd == 0 || (cell.AccessEnd-time.Now().Unix()) > int64(loopOptions.MaxExpiration*24*60*60)) { + if loopOptions.CellsMaxExpiration > 0 && (cell.AccessEnd == 0 || (cell.AccessEnd-time.Now().Unix()) > int64(loopOptions.CellsMaxExpiration*24*60*60)) { return errors.Forbidden("cells.max-expiration.mandatory", "Please set a maximum expiration date for Cells") } }