summaryrefslogtreecommitdiffstats
path: root/apps/files/src/components/TransferOwnershipDialogue.vue
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/src/components/TransferOwnershipDialogue.vue')
-rw-r--r--apps/files/src/components/TransferOwnershipDialogue.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files/src/components/TransferOwnershipDialogue.vue b/apps/files/src/components/TransferOwnershipDialogue.vue
index 0229be86cdd..58d44b500f4 100644
--- a/apps/files/src/components/TransferOwnershipDialogue.vue
+++ b/apps/files/src/components/TransferOwnershipDialogue.vue
@@ -215,7 +215,11 @@ export default {
.catch(error => {
logger.error('Could not send ownership transfer request', { error })
- this.submitError = error.message || t('files', 'Unknown error')
+ if (error && error.response && error.response.status === 403) {
+ this.submitError = t('files', 'Cannot transfter ownership of a file or folder you don\'t own')
+ } else {
+ this.submitError = error.message || t('files', 'Unknown error')
+ }
})
},
},