Pass state params to role definition

Hey @Narzerus 
This PR adds the ability to do role checks based on state params. 

Thanks for this module.