mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 11:26:00 +00:00
SYNC: chat & chart permission
This commit is contained in:
committed by
Diflow
parent
13b3ae35ed
commit
d24670e14e
@@ -511,7 +511,8 @@ await dbgateApi.executeQuery(${JSON.stringify(
|
||||
text: _t('database.exportDbModel', { defaultMessage: 'Export DB model' }),
|
||||
},
|
||||
isProApp() &&
|
||||
driver?.databaseEngineTypes?.includes('sql') && {
|
||||
driver?.databaseEngineTypes?.includes('sql') &&
|
||||
hasPermission('dbops/chat') && {
|
||||
onClick: handleDatabaseChat,
|
||||
text: _t('database.databaseChat', { defaultMessage: 'Database chat' }),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user