this.privileges.attribute[attribute];
// shim: the way to set an attribute to be non-editable after persist is {update: "false"}
- // if someone is asking if we can update a ready_new model, they're going to be asking
+ // if someone is asking if we can update a READY_NEW model, they're going to be asking
// canEdit, which will map to update, but we really know they are interested in the `create`
// attribute of the privObject
- if (privObject && action === "update" && this.isNew() && privObject.create !== privObject.update) {
+ if (privObject && action === "update" && this.isNew() &&
+ privObject.create !== privObject.update) {
action = "create";
}
next();
}
}],
- skipSmoke: true, // credit card is not a first-class business model
+ skipSmoke: true, // credit card is not a first-class business object with its own list
skipDelete: true
};
exports.spec = spec;