Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix root node actions detection.
Browse files Browse the repository at this point in the history
Do not display inbox in cross repo list.
  • Loading branch information
cdujeu committed Jul 4, 2016
1 parent 5b93b1d commit ef96bfc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/src/plugins/gui.ajax/res/js/es6/model/Action.es6
Expand Up @@ -302,7 +302,7 @@ class Action extends Observable{
}
if(this.options.activeCondition){
try{
var result = this.options.activeCondition();
let result = this.options.activeCondition();
if(result === false) this.disable();
else if(result === true) this.enable();
}catch(e){
Expand All @@ -329,7 +329,7 @@ class Action extends Observable{
else this.disable();
}
if(selectionContext.evalMetadata && userSelection && userSelection.isUnique()){
var result = this._evalScripts(selectionContext.evalMetadata, userSelection.getUniqueNode().getMetadata());
let result = this._evalScripts(selectionContext.evalMetadata, userSelection.getUniqueNode().getMetadata());
if(!result){
if(selectionContext.behaviour == 'hidden') this.hide();
else this.disable();
Expand Down
Expand Up @@ -539,7 +539,7 @@ class PydioDataModel extends Observable{
}
});
}catch(e){}

return found;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion core/src/plugins/gui.ajax/res/js/es6/model/User.es6
Expand Up @@ -223,7 +223,7 @@ class User{
// filter repositories once for all
this.crossRepositories = new Map();
this.repositories.forEach(function(value, key){
if(value.allowCrossRepositoryCopy){
if(value.allowCrossRepositoryCopy && value.accessType != 'inbox'){
this.crossRepositories.set(key, value);
}
}.bind(this) );
Expand Down

0 comments on commit ef96bfc

Please sign in to comment.