Disable share input for a received share if resharing is not allowed
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
9218dfb975
commit
a1d79b2b2b
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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)
|
||||
},
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue