diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-10-29 17:56:54 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-10-29 17:56:54 +0100 |
commit | dcfaf3afdc903212e1eca9fe353ede07c6eac7b1 (patch) | |
tree | 739730fedcc5f0d5467c79aa146052ccc25b5a95 /apps/files_sharing/js/sharedfilelist.js | |
parent | 73d9699be9d2a343b0573dc6a5bcc65f5f9c7303 (diff) | |
download | nextcloud-server-dcfaf3afdc903212e1eca9fe353ede07c6eac7b1.tar.gz nextcloud-server-dcfaf3afdc903212e1eca9fe353ede07c6eac7b1.zip |
Bring back delete permission in share overview
Diffstat (limited to 'apps/files_sharing/js/sharedfilelist.js')
-rw-r--r-- | apps/files_sharing/js/sharedfilelist.js | 12 |
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; } |