martin
(Martin Brennan)
November 12, 2026, 8:03am
23
Yes this was brought up internally by @lindsey too…we need to think of some solution for this that allows us to add links via plugin but also allow them to be removed via customization.
In the meantime this PR fixes @putty 's need:
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 Likes