-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to disable SQL editor toolbar buttons #19130
Comments
Why? |
Hi, I'm an high school teacher. I would like to prevent my students from having an almost-ready query just by clicking on a button. |
You can append this css: #select.sqlbutton,
#selectall.sqlbutton,
#insert.sqlbutton,
#update.sqlbutton,
#delete.sqlbutton {
display:none;
} to each of the theme files:
which will prevent the buttons from being displayed by default. Though a savvy student would be able to enable them again with the browser developer tools. |
Thank you for the tip. In fact I hoped there was a PHP-side solution like not outputting the buttons at all. |
You could delete these lines: phpmyadmin/templates/sql/query.twig Lines 27 to 35 in 11e127f
|
@MoonE Thank you for helping me. Do you think it will be possible to enable/disable via config in the future? Maybe a boolean value |
Hi,
Is it possible to disable
SELECT
,INSERT
,UPDATE
andDELETE
buttons from the SQL editor toolbar? Thanks.Server configuration
The text was updated successfully, but these errors were encountered: