conditionally execution of code active event created

depending upon if user belongs to role or not