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   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   50 人在线   最高记录 50   ·     选择语言  ·     选择编辑器
创意工作者们的社区
World is powered by code
VERSION: 6f2aea9 · 14ms · UTC 12:32 · PVG 20:32 · LAX 05:32 · JFK 08:32
♥ Do have faith in what you're doing.