kickingbullCasnode 第 29 号会员,加入于 2020-08-18 06:35:29 +08:001 |
| Checking for an explicit vs implicit denyCasbin • kickingbull • 5年前 • 最后回复来自 00LT00 | 1 |
| Functions available for policy_effect definitions Casbin • kickingbull • 5年前 • 最后回复来自 00LT00 | 3 |
5年前 回复了 kickingbull 创建的主题› Casbin › Functions available for policy_effect definitions |
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"