only prevent shared action for the Shared folder in the root dir

remotes/origin/stable6
Björn Schießle 12 years ago
parent b2da2f769a
commit e5f40ddaae
  1. 2
      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);
}

Loading…
Cancel
Save