Comments (2)
你好,应用启动之后需要将数据库中的角色信息同步到 ACL 组件中,否则 ACL 组件中会查找不到角色信息。plugin-acl 在监听到 app 的 beforeStart
事件之后会同步一次。如果你没有调用 app.start()
,可以在合适的地方调用一次 PluginACL
中的 writeRolesToACL()
from nocobase.
明白了。
我是在 app.start()
前的 plngin.load 方法里做上述操作的,因此无法得到 role acl 相关初始化的上下文。
目前我在 plugin 中得到 PluginACL
实例,然后调用 writeRolesToACL()
,问题得到了解决。
谢谢。
from nocobase.
Related Issues (20)
- Inherited Model Not Triggering Workflow Based on Base Model in v0.21.0-alpha.7 HOT 2
- Many to many Intermediate table not showing HOT 2
- 文件管理器支持OSS私有权限控制吗? HOT 1
- 会有规划实现OSS文件前端直传吗?
- Created by/Last updated by not set updating Datetime when save-mode is "Insert if not exists[, or update]" HOT 2
- Bug: Upload Service Error: when uploading attachment to S3 HOT 4
- 【BUG】应用在多副本部署时偶尔报错404 HOT 2
- 【BUG】导出表格内容不完整 HOT 1
- Invalid ACS url for SAML configuration
- iframe插件html模式下 404 HOT 4
- Duplicate page turn data after list sorting HOT 4
- v1.0.0-alpha.1 列表数据点击排序,数据重复bug依旧存在 HOT 7
- v1.0.0-alpha.1 设置每页显示100条数据,但点击排序以后,页面又只显示20条 HOT 3
- 自定义请求开启或者关闭<执行后刷新数据>.数据也都不会刷新 HOT 1
- 客户端点击排序后,分页数据会重复 HOT 7
- 执行 yarn nocobase upgrade 升级后启动出现这个问题,应该如何修改数据库 HOT 2
- Problem to edit multiple select fields without removing previous selected items
- Placing a collapsed filter block in a tree collection causes a rendering error HOT 1
- can't install nocobase HOT 1
- Many to many FK fields not visible
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nocobase.