3.1.x new

v1_controller accounts for different role permissions in Connect and iPeer during add/update of user in iPeer
Could you merge this query with the query above to reduce the number of queries to the database. With large number of enrolment, it can be very slow.