在线编辑器
你也可以使用在线编辑器(https://casbin.org/en/editor/) 在你的浏览器中编辑你的Casbin模型和策略。 它提供了一些比如 语法高亮
以及代码补全
这样的功能,就像编程语言的IDE一样。
Use Pattern
If you use RBAC with pattern
or RBAC with all pattern
, it specifies the pattern matching function in the lower left corner. . If you want to write the equivalent code, you need to specify the pattern matching function through the relevant api. See RBAC with Pattern
note
The editor is based on node-casbin. Due to the synchronization delay between different language of casbin, the authentication result of the editor
may be different from the authentication result of the casbin you are using. If so, please submit issues to the casbin repository you are using.