mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Entity build: test for enabled in post_op
https://fedorahosted.org/freeipa/ticket/3235
This commit is contained in:
@@ -461,6 +461,11 @@ exp.entity_post_ops = {
|
||||
|
||||
init: function(entity, spec, context) {
|
||||
|
||||
if (typeof spec.enable_test === 'function') {
|
||||
if (!spec.enable_test()) throw {
|
||||
expected: true
|
||||
};
|
||||
}
|
||||
if (entity.init) {
|
||||
entity.init(spec, context);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user