Skip to content

Commit d058764

Browse files
committed
bugfix: share api bug fix
1 parent 3b38cd2 commit d058764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/datart/server/service/impl/ShareServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ private void validateExecutePermission(String authorizedToken, ViewExecuteParam
340340
}
341341

342342
private void validateExpiration(ShareAuthorizedToken share) {
343-
if (share == null || new Date().after(share.getExpiryDate())) {
343+
if (share == null || (share.getExpiryDate() != null && new Date().after(share.getExpiryDate()))) {
344344
Exceptions.tr(BaseException.class, "message.share.expired");
345345
}
346346
}

0 commit comments

Comments
 (0)