summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r--apps/files_sharing/js/sharedfilelist.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js
index edf138b97ae..68bfd63ec89 100644
--- a/apps/files_sharing/js/sharedfilelist.js
+++ b/apps/files_sharing/js/sharedfilelist.js
@@ -105,11 +105,7 @@
},
getDirectoryPermissions: function() {
- var perms = OC.PERMISSION_READ;
- if (this._sharedWithUser) {
- perms |= OC.PERMISSION_DELETE;
- }
- return perms;
+ return OC.PERMISSION_READ | OC.PERMISSION_DELETE;
},
updateStorageStatistics: function() {
@@ -271,11 +267,7 @@
}
file.name = OC.basename(share.path);
file.path = OC.dirname(share.path);
- if (this._sharedWithUser) {
- file.permissions = OC.PERMISSION_ALL;
- } else {
- file.permissions = OC.PERMISSION_ALL - OC.PERMISSION_DELETE;
- }
+ file.permissions = OC.PERMISSION_ALL;
if (file.path) {
file.extraData = share.path;
}