Created
June 1, 2016 14:46
-
-
Save Wardormeur/4b5db5ee9b8b31b4e9847fde3291b6ce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Doesnt work | |
this.wrap({role: options.target}, function(msg, respond){ | |
seneca.act({role: 'cd-core', cmd: 'check_permissions', msg: msg}, | |
function (err, validity){ | |
this.prior(msg, respond); | |
} | |
); | |
}); | |
//Work | |
this.wrap({role: options.target}, function(msg, respond){ | |
this.prior(msg, respond); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment