[New Edit Mode] Fixed logic in EditActionPolicy to use positive logic
This commit is contained in:
@@ -65,13 +65,13 @@ define(
|
||||
|
||||
// A view is editable unless explicitly flagged as not
|
||||
(views || []).forEach(function (view) {
|
||||
if (view.editable===true && !(applicableView(view.key) && !editableType(type.getKey()))){
|
||||
if (view.editable === true || (applicableView(view.key) && editableType(type.getKey()))){
|
||||
count++;
|
||||
}
|
||||
});
|
||||
|
||||
return count;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether the domain object is currently being edited. If
|
||||
|
||||
Reference in New Issue
Block a user