diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-09-01 18:53:48 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-09-01 18:53:48 -0400 |
commit | 6c29334b4888309e7b60cbdf4defdac1c47195bf (patch) | |
tree | ba6e3f3398420e5a8b821228df9c0c0e885f2195 /core/ajax | |
parent | aad7dc8390b67ee7d04d83765b1295b9507767f5 (diff) | |
download | nextcloud-server-6c29334b4888309e7b60cbdf4defdac1c47195bf.tar.gz nextcloud-server-6c29334b4888309e7b60cbdf4defdac1c47195bf.zip |
Add support for share expiration
Diffstat (limited to 'core/ajax')
-rw-r--r-- | core/ajax/share.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php index debdf612c0e..8c2e85523e3 100644 --- a/core/ajax/share.php +++ b/core/ajax/share.php @@ -55,6 +55,12 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo ($return) ? OC_JSON::success() : OC_JSON::error(); } break; + case 'setExpirationDate': + if (isset($_POST['date'])) { + $return = OCP\Share::setExpirationDate($_POST['itemType'], $_POST['itemSource'], $_POST['date']); + ($return) ? OC_JSON::success() : OC_JSON::error(); + } + break; } } else if (isset($_GET['fetch'])) { switch ($_GET['fetch']) { |