Share links are valid for one month

This commit is contained in:
brantje 2016-12-19 14:56:12 +01:00
parent 9f145e3131
commit a14e38c2e0
No known key found for this signature in database
GPG key ID: 5FF1D117F918687F

View file

@ -96,12 +96,13 @@
var link_acl = angular.copy($scope.default_permissions);
link_acl.removePermission($scope.default_permissions.permissions.WRITE);
var oneMonthLater = new Date();
oneMonthLater.setMonth(oneMonthLater.getMonth() + 1);
$scope.share_settings = {
linkSharing: {
enabled: false,
settings: {
expire_time: new Date("2999-12-31T22:59:59"),
expire_time: oneMonthLater,
expire_views: 5,
acl: link_acl
}