]> source.dussan.org Git - nextcloud-server.git/commit
Consider share type for enforced share expiry dates 40530/head
authorfenn-cs <fenn25.fn@gmail.com>
Tue, 19 Sep 2023 10:57:43 +0000 (11:57 +0100)
committernextcloud-command <nextcloud-command@users.noreply.github.com>
Wed, 20 Sep 2023 15:18:44 +0000 (15:18 +0000)
commitcf2b9e83531ea8e69076dc932543e8fdbdf95a29
tree8163e1bd1b049e828593f16e04c7ad0d35ffd146
parentc5377c572bb792b023ef109541c3a20021592851
Consider share type for enforced share expiry dates

We have three kind of share expiry date enforcements.

- `isDefaultExpireDateEnforced`
- `isDefaultInternalExpireDateEnforced`
- `isDefaultRemoteExpireDateEnforced`

Before these commit, `isExpiryDateEnforced` that is used to
disable/enable the set expiry date checkbox does not take those into consideration
which is problematic as those have different applications.

In addition, this commit now uses `isExpiryDateEnforced` to disable/enable the input for
expiry date that shows up before the creation of link shares.

Here, `hasExpirationDate` is also removed from 'SharingEntryLink` component as it is
not used.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
apps/files_sharing/src/components/SharingEntryLink.vue
apps/files_sharing/src/mixins/SharesMixin.js
apps/files_sharing/src/views/SharingDetailsTab.vue
dist/files_sharing-files_sharing_tab.js
dist/files_sharing-files_sharing_tab.js.map