martin
(Martin Brennan)
Novembre 12, 2026, 8:03
23
Oui, @lindsey a également soulevé ce point en interne… Nous devons trouver une solution qui nous permette d’ajouter des liens via un plugin, mais aussi de les supprimer via une personnalisation.
En attendant, cette PR répond aux besoins de @putty :
main ← ux/no-boards-link-for-users-without
Followup 146e2e4c050f8a959a86389cc10a21beb3e29264
We should only show the board… s link in the community sidebar section if
the user, whether they logged in or anonymous, has access to view any
boards. Otherwise, the link just takes them to an empty list which is
pointless.
To achieve the anonymous part of this, I am adding a new plugin registry
register that allows plugins to inject additional preloaded JSON data
into the initial response. This was done as an alternative to extending
the site serializer which is cached. This will likely be useful in
future as more things start to use ACLs which allow anonymous users in
where we don't have access to the current user serializer on the front
end.
c.f. https://meta.discourse.org/t/discourse-boards/411414/19?u=martin
5 « J'aime »