Casbin = way to authorization
A place for Casbin developers and users
现在注册
已注册用户请  登录
主题样式选择
默认主题样式 ✅
知乎主题样式 
kickingbull
kickingbull

Looking through the code I found the DefaultEffector class merge_effects() method that processes the policy_effect. Suprisingly from the code there is only 4 possible values for the policy_effect and they are specific strings and not actual code as I was expecting. The 4 possible values are:

  • "some(where (p_eft == allow))"
  • "!some(where (p_eft == deny))"
  • "some(where (p_eft == allow)) && !some(where (p_eft == deny))"
  • "priority(p_eft) || deny"
关于   ·   FAQ   ·   API   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   51 人在线   最高记录 51   ·     选择语言  ·     选择编辑器
创意工作者们的社区
World is powered by code
VERSION: c3b0ae8 · 25ms · UTC 11:08 · PVG 19:08 · LAX 04:08 · JFK 07:08
♥ Do have faith in what you're doing.