diff options
author | Björn Schießle <schiessle@owncloud.com> | 2014-06-06 19:24:15 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2014-06-06 19:24:15 +0200 |
commit | 3da47db33cd9a676a1f5b51a8c8ed1abe617ce3e (patch) | |
tree | fb349c85f68d736aed93ff9bf9167199879aa1bb /core/ajax/share.php | |
parent | dfe6bd61bf315693dd447cda0f66d5a4c23128f1 (diff) | |
parent | 9c00f5ddb61507f7bd02a79e2a62339b45b20c0b (diff) | |
download | nextcloud-server-3da47db33cd9a676a1f5b51a8c8ed1abe617ce3e.tar.gz nextcloud-server-3da47db33cd9a676a1f5b51a8c8ed1abe617ce3e.zip |
Merge pull request #8927 from owncloud/expire_only_link_shares
only expire link shares
Diffstat (limited to 'core/ajax/share.php')
-rw-r--r-- | core/ajax/share.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php index feb64490b4e..be72e36541a 100644 --- a/core/ajax/share.php +++ b/core/ajax/share.php @@ -84,6 +84,8 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo $date = new \DateTime($_POST['date']); $today = new \DateTime('now'); + + if ($date < $today) { OC_JSON::error(array('data' => array('message' => $l->t('Expiration date is in the past.')))); return; |