I have noticed what I think is a bug with the Discourse Assign - #117 plugin. It is possible for an admin to assign a PM to a moderator who does not have access to the PM. They are notified, but when they click through to see the PM they cannot see it and get an error.
The answer, it seems to me, should be to add the assignee to the message at the same time, or to display an error to the assigner to let them know the assignee is not in the message and cannot be assigned the message.
This obviously does not affect admins who can see all PMs.
I can repro this. An assign notification is generated despite the user not having access to the PM assigned. Same issue occurs in categories with security that mods can’t access.
Je viens de tomber là-dessus aujourd’hui : nous constatons que j’ai assigné de nombreux messages à des modérateurs qui n’y ont pas accès et qui, par conséquent, ne les ont pas suivis. Oups.
Je pense que nous devrions également supprimer les utilisateurs sans accès des résultats de la modale d’attribution. Pour cela, je devrai étendre légèrement l’API de recherche d’utilisateurs du cœur.
Voici la PR :
Je trouverai quelqu’un pour l’examiner avant de la fusionner.