Онлайн-редактор
Вы также можете использовать онлайн редактор (https://casbin.org/en/editor/) для написания вашей модели и политики Казина в вашем веб-браузере. Он предоставляет такие функциональные возможности, как подсветка синтаксиса
и завершение кода
, как 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.