diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-11-10 22:14:12 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-11-11 01:35:10 +0100 |
commit | a1d79b2b2bd8bef37c30b5426c94724f9f9d6ab6 (patch) | |
tree | 6f34a31fc21e7e99b3dde8b46294c1faac6c1dc1 /apps/files_sharing/src/views | |
parent | 9218dfb975e5579ed86445293253954c1a16ea91 (diff) | |
download | nextcloud-server-a1d79b2b2bd8bef37c30b5426c94724f9f9d6ab6.tar.gz nextcloud-server-a1d79b2b2bd8bef37c30b5426c94724f9f9d6ab6.zip |
Disable share input for a received share if resharing is not allowed
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/files_sharing/src/views')
-rw-r--r-- | apps/files_sharing/src/views/SharingTab.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_sharing/src/views/SharingTab.vue b/apps/files_sharing/src/views/SharingTab.vue index 0371be76a70..979e296d8f9 100644 --- a/apps/files_sharing/src/views/SharingTab.vue +++ b/apps/files_sharing/src/views/SharingTab.vue @@ -90,6 +90,7 @@ import { generateOcsUrl } from '@nextcloud/router' import Avatar from '@nextcloud/vue/dist/Components/Avatar' import axios from '@nextcloud/axios' +import Config from '../services/ConfigService' import { shareWithTitle } from '../utils/SharedWithMe' import Share from '../models/Share' import ShareTypes from '../mixins/ShareTypes' @@ -119,6 +120,8 @@ export default { data() { return { + config: new Config(), + error: '', expirationInterval: null, loading: true, @@ -147,7 +150,7 @@ export default { canReshare() { return !!(this.fileInfo.permissions & OC.PERMISSION_SHARE) - || !!(this.reshare && this.reshare.hasSharePermission) + || !!(this.reshare && this.reshare.hasSharePermission && this.config.isResharingAllowed) }, }, |