]> git.joonet.de Git - adminer.git/commitdiff
Display warning for missing UPDATE privilege (bug #3466883)
authorJakub Vrana <jakub@vrana.cz>
Sun, 16 Dec 2012 07:13:51 +0000 (23:13 -0800)
committerJakub Vrana <jakub@vrana.cz>
Sun, 16 Dec 2012 07:14:11 +0000 (23:14 -0800)
adminer/edit.inc.php
adminer/lang/cs.inc.php
adminer/lang/xx.inc.php
changes.txt

index 3365191312558b4079f1b9706558a488788974cb..1c8c982211b4bfcbfd4ca38cb42680dc7040919a 100644 (file)
@@ -77,7 +77,9 @@ if ($row === false) {
 
 <form action="" method="post" enctype="multipart/form-data" id="form">
 <?php
-if ($fields) {
+if (!$fields) {
+       echo "<p class='error'>" . lang('You have no privileges to update this table.') . "\n";
+} else {
        echo "<table cellspacing='0' onkeydown='return editingKeydown(event);'>\n";
        foreach ($fields as $name => $field) {
                echo "<tr><th>" . $adminer->fieldName($field);
index 9a41ceea9382f18f0dd916a70079ec79266ba485..9804ff02d18120a699517d9b51c08d3424f45c5d 100644 (file)
@@ -263,6 +263,7 @@ $translations = array(
        'Save and insert next' => 'Uložit a vložit další',
        'Clone' => 'Klonovat',
        'Delete' => 'Smazat',
+       'You have no privileges to update this table.' => 'Nemáte oprávnění editovat tuto tabulku.',
        
        'E-mail' => 'E-mail',
        'From' => 'Odesílatel',
index 2e88449e4e5a2e72f750a620a2bcdf86ffc0eedd..05834aefe302bbf835a8a791704f8e9bbe8ed64e 100644 (file)
@@ -263,6 +263,7 @@ $translations = array(
        'Save and insert next' => 'xx',
        'Clone' => 'xx',
        'Delete' => 'xx',
+       'You have no privileges to update this table.' => 'xx',
        
        'E-mail' => 'xx',
        'From' => 'xx',
index 53b1817807c4ce2b4a5ed5d8cf0393c96015e74b..b02e73b1f66718ba90da973e2be173b50ba2cc6b 100644 (file)
@@ -6,6 +6,7 @@ Shorten printed values in varchar fields
 Display table default values on wide screens
 Display date in SQL history
 HTML5 input fields
+Display warning for missing UPDATE privilege
 Fix switching language on first load
 Support enabled mbstring.func_overload
 MySQL: Prolong comment length since MySQL 5.5