Questions in Usage analytics
should never open the native query panel #49904
Open
Description
Describe the bug
We hide the "Show SQL" on Usage analytics questions, but if the user had it open in another question, it opens in Usage analytics questions too.
To Reproduce
- Go to a question where you have "Create native query" permission
- Click on "Show editor" > "View the SQL"
- Now go to a Usage analytics question
- See the SQL
Expected behavior
Questions in Usage analytics should never show the SQL or the Convert to SQL button
Logs
No response
Information about your Metabase installation
1.51.3
Severity
P3