mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 16:36:00 +00:00
new permissions
This commit is contained in:
@@ -504,7 +504,7 @@ registerCommand({
|
||||
name: 'SQL Generator',
|
||||
toolbar: true,
|
||||
icon: 'icon sql-generator',
|
||||
testEnabled: () => getCurrentDatabase() != null,
|
||||
testEnabled: () => getCurrentDatabase() != null && hasPermission(`dbops/sql-generator`),
|
||||
onClick: () =>
|
||||
showModal(SqlGeneratorModal, {
|
||||
conid: getCurrentDatabase()?.connection?._id,
|
||||
|
||||
Reference in New Issue
Block a user