Turns out this IS possible to do, but absolutely nowhere in the documentation. Just in blog posts for v2. To do this, you can pull the current user off the context object that is exposed alongside the structure builder. This will let you check the roles of users before returning a list.
This really should be in the documentation as this has been giving me a headache for about 2 hours
Oct 6, 2023, 12:32 PM
There’s an example here but you’d pretty much already have to know where it is to find it.
Oct 6, 2023, 4:27 PM
Coming back to this! How would you render certain plugins based on a role (such as media and vision plugin)?