@nocobase/plugin-data-visualization
Advanced tools
Comparing version 1.3.0-alpha.20240710155619 to 1.3.0-alpha.20240719150832
@@ -11,3 +11,3 @@ /** | ||
module.exports = { | ||
"@nocobase/client": "1.3.0-alpha.20240710155619", | ||
"@nocobase/client": "1.3.0-alpha.20240719150832", | ||
"dayjs": "1.11.10", | ||
@@ -17,4 +17,4 @@ "@formily/react": "2.3.0", | ||
"lodash": "4.17.21", | ||
"@nocobase/cache": "1.3.0-alpha.20240710155619", | ||
"@nocobase/server": "1.3.0-alpha.20240710155619", | ||
"@nocobase/cache": "1.3.0-alpha.20240719150832", | ||
"@nocobase/server": "1.3.0-alpha.20240719150832", | ||
"react": "18.2.0", | ||
@@ -27,7 +27,7 @@ "@ant-design/icons": "5.2.6", | ||
"@formily/core": "2.3.0", | ||
"@nocobase/utils": "1.3.0-alpha.20240710155619", | ||
"@nocobase/utils": "1.3.0-alpha.20240719150832", | ||
"react-i18next": "11.18.6", | ||
"sequelize": "6.35.2", | ||
"@nocobase/actions": "1.3.0-alpha.20240710155619", | ||
"@nocobase/database": "1.3.0-alpha.20240710155619" | ||
"@nocobase/actions": "1.3.0-alpha.20240719150832", | ||
"@nocobase/database": "1.3.0-alpha.20240719150832" | ||
}; |
@@ -1,1 +0,1 @@ | ||
{"name":"koa-compose","description":"compose Koa middleware","repository":"koajs/compose","version":"4.1.0","keywords":["koa","middleware","compose"],"files":["index.js"],"dependencies":{},"devDependencies":{"codecov":"^3.0.0","jest":"^21.0.0","matcha":"^0.7.0","standard":"^10.0.3"},"scripts":{"bench":"matcha bench/bench.js","lint":"standard --fix .","test":"jest --forceExit --coverage"},"jest":{"testEnvironment":"node"},"license":"MIT","_lastModified":"2024-07-10T16:08:13.140Z"} | ||
{"name":"koa-compose","description":"compose Koa middleware","repository":"koajs/compose","version":"4.1.0","keywords":["koa","middleware","compose"],"files":["index.js"],"dependencies":{},"devDependencies":{"codecov":"^3.0.0","jest":"^21.0.0","matcha":"^0.7.0","standard":"^10.0.3"},"scripts":{"bench":"matcha bench/bench.js","lint":"standard --fix .","test":"jest --forceExit --coverage"},"jest":{"testEnvironment":"node"},"license":"MIT","_lastModified":"2024-07-19T15:19:11.064Z"} |
@@ -275,5 +275,7 @@ /** | ||
const checkPermission = (ctx, next) => { | ||
const { collection } = ctx.action.params.values; | ||
var _a; | ||
const { collection, dataSource } = ctx.action.params.values; | ||
const roleName = ctx.state.currentRole || "anonymous"; | ||
const can = ctx.app.acl.can({ role: roleName, resource: collection, action: "list" }); | ||
const acl = ((_a = ctx.app.dataSourceManager.get(dataSource)) == null ? void 0 : _a.acl) || ctx.app.acl; | ||
const can = acl.can({ role: roleName, resource: collection, action: "list" }); | ||
if (!can && roleName !== "root") { | ||
@@ -280,0 +282,0 @@ ctx.throw(403, "No permissions"); |
{ | ||
"name": "@nocobase/plugin-data-visualization", | ||
"version": "1.3.0-alpha.20240710155619", | ||
"version": "1.3.0-alpha.20240719150832", | ||
"displayName": "Data visualization", | ||
@@ -31,2 +31,3 @@ "displayName.zh-CN": "数据可视化", | ||
"@nocobase/client": "1.x", | ||
"@nocobase/data-source-main": "1.x", | ||
"@nocobase/database": "1.x", | ||
@@ -37,3 +38,3 @@ "@nocobase/server": "1.x", | ||
}, | ||
"gitHead": "95de9b94409d2e98bc2b95161ddf2012499bb5ec", | ||
"gitHead": "df502d5ebb2c9d7a11ee12b6d4a1b58453e6e176", | ||
"keywords": [ | ||
@@ -40,0 +41,0 @@ "Blocks" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1470116
7820
8