[Pkg-owncloud-commits] [owncloud] 30/61: update attributes for share with user list, file should always have delete permissions, this means unshare in this context, and the overview page is always a root view

David Prévot taffit at moszumanska.debian.org
Thu Jul 31 03:51:46 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 59aa54ddb8776ee4adc05948ca19fe6730a05e5c
Author: Bjoern Schiessle <schiessle at owncloud.com>
Date:   Mon Jul 28 22:04:13 2014 +0200

    update attributes for share with user list, file should always have delete permissions, this means unshare in this context, and the overview page is always a root view
---
 apps/files_sharing/js/sharedfilelist.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js
index c060691..7a43185 100644
--- a/apps/files_sharing/js/sharedfilelist.js
+++ b/apps/files_sharing/js/sharedfilelist.js
@@ -59,6 +59,9 @@
 			$tr.attr('data-share-id', _.pluck(fileData.shares, 'id').join(','));
 			if (this._sharedWithUser) {
 				$tr.attr('data-share-owner', fileData.shareOwner);
+				$tr.attr('data-mounttype', 'shared-root');
+				var permission = parseInt($tr.attr('data-permissions')) | OC.PERMISSION_DELETE;
+				$tr.attr('data-permissions', permission);
 			}
 			return $tr;
 		},

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list