- Issue created by @dxvargas
The roles that can use private messaging is of great interest.
In this module we need it in \Drupal\private_message\Plugin\EntityReferenceSelection\NotBlockedUserSelection::getCanUseRids()
but it's a protected method.
Other modules, be it custom or contrib, can need this too.
I can provide an example: Private message flood, see this comment:
https://git.drupalcode.org/project/private_message_flood/-/merge_request...
As you see there, the permission of this module is being used by them! If one day we change the permission, that module will be impacted without previous advise. It would be much better if the roles list would be provided here.
\Drupal\private_message\Plugin\EntityReferenceSelection\NotBlockedUserSelection::getCanUseRids()
.Active
4.0
Code