Why do you need create record valve permission to getList('search?' + queryString)?
layanto opened this issue · comments
Jeffrey Layanto commented
For a user to call ds.record.getList('search?' + queryString), that user needs create record permission. Why?
My initial expectation was:
- User call ds.record.getList('search?' + queryString)
- Search provider does the query and create the list (search provider needs create record permission)
- User gets the created list and subscribes to it (user needs read record permission)
Is this not the case?
Jeffrey Layanto commented
I believe the sequence of events is:
- User call ds.record.getList('search?' + queryString) which creates the list/record hence needing create record permission
- Search provider does the query and populate the already created list (search provider needs create record permission)
- User gets notified of updated list
I created a valve permission rule for search so even if client does not have create record permission in general, it has create record permission for search.