mirror of https://github.com/nextcloud/server
Compare commits
8 Commits
b695dfeece
...
82b0f32cd2
Author | SHA1 | Date |
---|---|---|
backportbot[bot] | 82b0f32cd2 | |
Côme Chilliet | 369247338b | |
Simon L | 5b72d48cff | |
Simon L. | c1a90cbfb9 | |
nextcloud-command | 44ae76f423 | |
fenn-cs | a37862b696 | |
nextcloud-command | a37aa0333c | |
fenn-cs | bbb28fd483 |
|
@ -102,10 +102,8 @@
|
|||
# Here are more information about the issue:
|
||||
# - https://docs.cyberduck.io/mountainduck/issues/fastcgi/
|
||||
# - https://docs.nextcloud.com/server/latest/admin_manual/issues/general_troubleshooting.html#troubleshooting-webdav
|
||||
<IfModule setenvif.c>
|
||||
<Location "/remote.php">
|
||||
SetEnvIf Transfer-Encoding "chunked" proxy-sendcl=1
|
||||
</Location>
|
||||
<IfModule mod_setenvif.c>
|
||||
SetEnvIf Transfer-Encoding "chunked" proxy-sendcl=1
|
||||
</IfModule>
|
||||
|
||||
AddDefaultCharset utf-8
|
||||
|
|
|
@ -373,10 +373,14 @@ export default {
|
|||
*/
|
||||
canDownload: {
|
||||
get() {
|
||||
return this.share.hasDownloadPermission
|
||||
return this.share.attributes.find(attr => attr.key === 'download')?.enabled || false
|
||||
},
|
||||
set(checked) {
|
||||
this.updateAtomicPermissions({ isDownloadChecked: checked })
|
||||
// Find the 'download' attribute and update its value
|
||||
const downloadAttr = this.share.attributes.find(attr => attr.key === 'download')
|
||||
if (downloadAttr) {
|
||||
downloadAttr.enabled = checked
|
||||
}
|
||||
},
|
||||
},
|
||||
/**
|
||||
|
@ -680,7 +684,6 @@ export default {
|
|||
isCreateChecked = this.canCreate,
|
||||
isDeleteChecked = this.canDelete,
|
||||
isReshareChecked = this.canReshare,
|
||||
isDownloadChecked = this.canDownload,
|
||||
} = {}) {
|
||||
// calc permissions if checked
|
||||
const permissions = 0
|
||||
|
@ -690,9 +693,6 @@ export default {
|
|||
| (isEditChecked ? ATOMIC_PERMISSIONS.UPDATE : 0)
|
||||
| (isReshareChecked ? ATOMIC_PERMISSIONS.SHARE : 0)
|
||||
this.share.permissions = permissions
|
||||
if (this.share.hasDownloadPermission !== isDownloadChecked) {
|
||||
this.$set(this.share, 'hasDownloadPermission', isDownloadChecked)
|
||||
}
|
||||
},
|
||||
expandCustomPermissions() {
|
||||
if (!this.advancedSectionAccordionExpanded) {
|
||||
|
@ -854,8 +854,8 @@ export default {
|
|||
shareType: share.shareType,
|
||||
shareWith: share.shareWith,
|
||||
permissions: share.permissions,
|
||||
attributes: JSON.stringify(fileInfo.shareAttributes),
|
||||
expireDate: share.expireDate,
|
||||
attributes: JSON.stringify(share.attributes),
|
||||
...(share.note ? { note: share.note } : {}),
|
||||
...(share.password ? { password: share.password } : {}),
|
||||
})
|
||||
|
@ -999,7 +999,7 @@ export default {
|
|||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Target component based style in NcCheckboxRadioSwitch slot content*/
|
||||
:deep(span.checkbox-content__text.checkbox-radio-switch__text) {
|
||||
flex-wrap: wrap;
|
||||
|
|
|
@ -46,7 +46,11 @@
|
|||
:wide="true"
|
||||
@click="itemSelected(element)">
|
||||
<template #icon>
|
||||
<NcAvatar :user="element.user" :show-user-status="false" :hide-favorite="false" />
|
||||
<NcAvatar v-if="element.isUser" :user="element.user" :show-user-status="false" />
|
||||
<NcAvatar v-else
|
||||
:is-no-user="true"
|
||||
:display-name="element.displayName"
|
||||
:show-user-status="false" />
|
||||
</template>
|
||||
{{ element.displayName }}
|
||||
</NcButton>
|
||||
|
|
|
@ -380,6 +380,7 @@ export default {
|
|||
subname: contact.emailAddresses[0] ? contact.emailAddresses[0] : '',
|
||||
icon: '',
|
||||
user: contact.id,
|
||||
isUser: contact.isUser,
|
||||
}
|
||||
})
|
||||
},
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue