I am running a small blog site with mainly 3 roles on it . Subscriber, Contributor, Admin.
I don’t have enabled the friends bp component, so in order for a user to have autocomplete in private messages i am using the define( 'BP_MESSAGES_AUTOCOMPLETE_ALL', true ); from here
The problem is that the query give all users as a result. Is there a way to allow only contributor+admins in the results? Maybe by messages_autocomplete_init_jsblock function?