Disable editing routines if user has no privilege to select from mysql.proc or if he's not the owner of that routine. See http://www.heidisql.com/forum.php?t=10231

This commit is contained in:
Ansgar Becker
2012-03-07 20:57:46 +00:00
parent 4de1b3012d
commit f36f54b0b8
2 changed files with 15 additions and 0 deletions

View File

@@ -17,6 +17,15 @@ object frmRoutineEditor: TfrmRoutineEditor
Caption = 'Routine body:'
FocusControl = SynMemoBody
end
object lblDisabledWhy: TLabel
Left = 256
Top = 460
Width = 177
Height = 13
Anchors = [akLeft, akBottom]
Caption = 'You have no privilege to this routine.'
Visible = False
end
object btnSave: TButton
Left = 165
Top = 455