search widget fails badly when "note search" is disabled
Created by: dakkar
💡 Summary
searching from the search widget, as a user not allowed to search notes, is confusing
🥰 Expected Behavior
either:
- the user can't add the widget
- or using the widget should produce an explanatory message
🤬 Actual Behavior
📝 Steps to Reproduce
- disable note search
- add the search widget
- type something, press enter
💻 Frontend Environment
Sharkey 18e82c0627b21971aa8132420a1d7975c46a91f3
🛰 Backend Environment (for server admin)
Sharkey 18e82c0627b21971aa8132420a1d7975c46a91f3
Do you want to address this bug yourself?
- Yes, I will patch the bug myself and send a pull request