Skip to content

Commit

Permalink
yet another typo...
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jul 17, 2023
1 parent b1af824 commit 13c9e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idm/share/client-front-configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
Expand Down

0 comments on commit 13c9e2a

Please sign in to comment.