Permalink
Browse files

Display warning for missing UPDATE privilege (bug #3466883)

  • Loading branch information...
vrana committed Dec 16, 2012
1 parent 0069d9f commit ce83605174b8ffcd31e9bd0603439704ba4b421a
Showing with 6 additions and 1 deletion.
  1. +3 −1 adminer/edit.inc.php
  2. +1 −0 adminer/lang/cs.inc.php
  3. +1 −0 adminer/lang/xx.inc.php
  4. +1 −0 changes.txt
View
@@ -77,7 +77,9 @@
<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);
View
@@ -263,6 +263,7 @@
'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',
View
@@ -263,6 +263,7 @@
'Save and insert next' => 'xx',
'Clone' => 'xx',
'Delete' => 'xx',
+ 'You have no privileges to update this table.' => 'xx',
'E-mail' => 'xx',
'From' => 'xx',
View
@@ -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

0 comments on commit ce83605

Please sign in to comment.