keystone
keystone copied to clipboard
Lists with `ui.isHidden` resolving to `true` - route can still be accessed in the admin UI
Reproduction steps
- Create List with
ui.isHiddenfunction set to resolve totrue. e.g.:
const User = list({
ui: {
isHidden: () => true,
},
fields: ...
- See the list is hidden from the dasboard and navigation
- Enter the route to the hidden list into the browser address bar e.g.
http://localhost:3000/usersand observe that you are directed to the list page.
Expected behaviour
Accessing the route of a list with ui.isHidden resolving to true should redirect the user back to the Dashboard