diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-05-19 18:33:43 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-05-30 10:06:29 +0200 |
commit | 85648def56e7ddea8c2c334a5399d0e5090d5208 (patch) | |
tree | fa756f7215711865262f5fd79387e46e5360d8a7 /apps | |
parent | 60bcdc550e95fbf0104bbc9c8028777016d73663 (diff) | |
download | nextcloud-server-85648def56e7ddea8c2c334a5399d0e5090d5208.tar.gz nextcloud-server-85648def56e7ddea8c2c334a5399d0e5090d5208.zip |
Fixed sharing permissions
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/js/sharedfilelist.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js index 9d8c9e38358..f3a6d669760 100644 --- a/apps/files_sharing/js/sharedfilelist.js +++ b/apps/files_sharing/js/sharedfilelist.js @@ -133,8 +133,7 @@ /* jshint camelcase: false */ var file = { id: share.file_source, - mtime: share.stime * 1000, - permissions: share.permissions + mtime: share.stime * 1000 }; if (share.item_type === 'folder') { file.type = 'dir'; @@ -156,11 +155,13 @@ file.share.ownerDisplayName = share.displayname_owner; file.name = OC.basename(share.file_target); file.path = OC.dirname(share.file_target); + file.permissions = share.permissions; } else { file.share.targetDisplayName = share.share_with_displayname; file.name = OC.basename(share.path); file.path = OC.dirname(share.path); + file.permissions = OC.PERMISSION_ALL; } return file; }) |