aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/js/app.js')
-rw-r--r--apps/files_sharing/js/app.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/js/app.js b/apps/files_sharing/js/app.js
index 8fb5cb02e56..1c01c880a6d 100644
--- a/apps/files_sharing/js/app.js
+++ b/apps/files_sharing/js/app.js
@@ -316,7 +316,9 @@ OCA.Sharing.App = {
iconClass: 'icon-close',
type: OCA.Files.FileActions.TYPE_INLINE,
shouldRender(context) {
- if (context.$file.attr('data-remote-id')) {
+ // disable rejecting group shares from the pending list because they anyway
+ // land back into that same list
+ if (context.$file.attr('data-remote-id') && parseInt(context.$file.attr('data-share-type'), 10) === OC.Share.SHARE_TYPE_REMOTE_GROUP) {
return false
}
return true