mirror of
https://github.com/nextcloud/passman.git
synced 2024-11-11 01:34:12 +08:00
Share links are valid for one month
This commit is contained in:
parent
9f145e3131
commit
a14e38c2e0
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue