浏览代码

[sentry] Convert Sentry * actions to ALL

Romain Rigaux 11 年之前
父节点
当前提交
38724b3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/libs/libsentry/src/libsentry/api.py

+ 1 - 1
desktop/libs/libsentry/src/libsentry/api.py

@@ -174,7 +174,7 @@ class SentryApi(object):
         'database': privilege.dbName,
         'table': privilege.tableName,
         'URI': privilege.URI,
-        'action': privilege.action.upper(),
+        'action': 'ALL' if privilege.action == '*' else privilege.action.upper(),
         'timestamp': privilege.createTime,
         'grantOption': privilege.grantOption == 1,
     }