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

If i have in Model .conf like:

matchers m = eval(p.sub_rule) && r.obj == p.obj && r.act == p.act

then in policy file the following stuff works: p, my_custom_func(r.sub.Age), /data1, read

BUT not the following kind of stuff: p, my_custom_func(r.sub.Age,r.sub.MaxAge), /data1, read

....because the policy file is splitted by the ',' (COMMA) and my_custom_func takes 2 parameters ...so it will be 1 more extra comma in policy row

Casbin: " panic: invalid policy size: ...."

关于   ·   FAQ   ·   API   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   40 人在线   最高记录 40   ·     选择语言  ·     选择编辑器
创意工作者们的社区
World is powered by code
VERSION: 2c477f2 · 11ms · UTC 11:45 · PVG 19:45 · LAX 04:45 · JFK 07:45
♥ Do have faith in what you're doing.