This project is read-only.

Setting Roles in a Recipe

Topics: Troubleshooting, Writing modules
Apr 10, 2011 at 1:49 PM
Edited Apr 10, 2011 at 1:50 PM

Hi guys,

I've written a command to set a role for a user - this works when called from a command line after a site has been created. However when I try to make use of this command in a Recipe (below) it fails:


user create /UserName:"Test" /Password:"password" /Email:""
defaultroles apply


Stepping through the code and looking at the db it appears the users are not actually in the database at the point of calling my defaultroles apply command.

Has the transaction not been committed? Can I force it to if so?

Any help much appreciated :)