You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When denying access to the query presets the "select preset" button does not disappear. Upon clicking it the popup to select a query preset opens empty and then closes. The console prints the following error:
POST /admin/collections/posts?limit=10 500 in 374ms
⨯ Error: not-found
at renderListView (packages\next\src\views\List\index.tsx:81:10)
at renderListHandler (packages\next\src\views\List\handleServerFunction.tsx:135:40)
at async Server.<anonymous> (test\dev.ts:125:4)
79 |
80 | if (!permissions?.collections?.[collectionSlug]?.read) {
> 81 | throw new Error('not-found')
| ^
82 | }
83 |
84 | const query = queryFromArgs || queryFromReq {
digest: '339678479'
}
Describe the Bug
When denying access to the query presets the "select preset" button does not disappear. Upon clicking it the popup to select a query preset opens empty and then closes. The console prints the following error:
Link to the code that reproduces this issue
https://github.com/tylkomat/payload/tree/bug-query-presets-access-denied
Reproduction Steps
Visit posts collection and click on "select preset".
Which area(s) are affected? (Select all that apply)
area: core, area: ui
Environment Info
The text was updated successfully, but these errors were encountered: