summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-07-05 12:43:52 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-07-05 12:43:57 +0200
commitf39dfc7ab8ced56de4935a56d87334b211df9b5e (patch)
treeb86e43db95907d58f56fdb885316a01fdbfa7bac
parentb49bc11fb3c267ef32af62b429d5259a5187c86f (diff)
downloadnextcloud-server-f39dfc7ab8ced56de4935a56d87334b211df9b5e.tar.gz
nextcloud-server-f39dfc7ab8ced56de4935a56d87334b211df9b5e.zip
Fixed jsunit
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r--apps/files_sharing/js/share.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/js/share.js b/apps/files_sharing/js/share.js
index 5f7705a8369..a925920f3bc 100644
--- a/apps/files_sharing/js/share.js
+++ b/apps/files_sharing/js/share.js
@@ -165,9 +165,9 @@
iconClass: 'icon-shared',
type: OCA.Files.FileActions.TYPE_INLINE,
actionHandler: function(fileName, context) {
- // do not open sidebar if no permission on the file
+ // do not open sidebar if permission is set and equal to 0
var permissions = parseInt(context.$file.data('share-permissions'), 10);
- if (permissions > 0) {
+ if (isNaN(permissions) || permissions > 0) {
fileList.showDetailsView(fileName, 'shareTabView');
}
},