diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-03-13 11:33:20 +0100 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-03-13 11:33:20 +0100 |
commit | e5f40ddaae1004835600f3b5a44bc1bdaea59d63 (patch) | |
tree | d063870524f041e6123763029b98d6a5c705cce4 /apps/files/js | |
parent | b2da2f769a896af5a139e6ce426e835b6c60aca9 (diff) | |
download | nextcloud-server-e5f40ddaae1004835600f3b5a44bc1bdaea59d63.tar.gz nextcloud-server-e5f40ddaae1004835600f3b5a44bc1bdaea59d63.zip |
only prevent shared action for the Shared folder in the root dir
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/fileactions.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index 3c4fa08bf1f..f3264da5a12 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -112,7 +112,7 @@ var FileActions = { addAction(name, action); } }); - if(actions.Share && file !== 'Shared'){ + if(actions.Share && !($('#dir').val() === '/' && file === 'Shared')){ addAction('Share', actions.Share); } |