Change the way user role is checked for connection permissions