summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-09-01 18:53:48 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-09-01 18:53:48 -0400
commit6c29334b4888309e7b60cbdf4defdac1c47195bf (patch)
treeba6e3f3398420e5a8b821228df9c0c0e885f2195 /core/ajax
parentaad7dc8390b67ee7d04d83765b1295b9507767f5 (diff)
downloadnextcloud-server-6c29334b4888309e7b60cbdf4defdac1c47195bf.tar.gz
nextcloud-server-6c29334b4888309e7b60cbdf4defdac1c47195bf.zip
Add support for share expiration
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/share.php6
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']) {