[Create] Restrict Create to certain types

Restrict the Create action to types with a 'creation' feature;
WTD-705.
This commit is contained in:
Victor Woeltjen 2015-01-21 16:16:33 -08:00
parent 5c34382933
commit b073e3d553

View File

@ -45,7 +45,9 @@ define(
}
// Introduce one create action per type
return typeService.listTypes().map(function (type) {
return typeService.listTypes().filter(function (type) {
return type.hasFeature("creation");
}).map(function (type) {
return new CreateAction(
type,
destination,