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

PyCasbin Function 'eval' not defined, for expression 'eval(p_sub_rule) and r_obj == p_obj and r_act

  •  
  •  
    BenP · 4年前 · 182 次点击 
    这是一个创建于 1612 天前的主题,其中的信息可能已经有所发展或是发生改变。

    When I attempt to use the "ABAC with Policy" rule found in the policy editor, pycasbin creates the following error on e.enforce(sub, obj, act):

    Exception has occurred: FunctionNotDefined
    Function 'eval' not defined, for expression 'eval(p_sub_rule) and r_obj == p_obj and r_act == p_act'.

    Can someone tell me why this occurs.

    182 次点击  ∙  0 人收藏  
      Tweet Weibo 忽略主题 
    6 条回复   2020-12-03 09:58:51 +08:00
    AndyX
    AndyX4年前

    The eval function have not been merged yet https://github.com/casbin/pycasbin/pull/68

    BenP
    BenP4年前

    Thank you for the quick answer.

    Yaco
    Yaco4年前

    请问下,目前 pycasbin 关于 eval 的问题还是存在,我看 https://github.com/casbin/pycasbin/pull/68 提到问题已经修复了。大概什么时候可以出版本呢,谢谢

    hsluoyz
    hsluoyz4年前

    @Yaco can you send a GitHub issue for your question? Thanks.

    Yaco
    Yaco4年前

    @hsluoyz Sorry, I didn't see your message. Forgive me for not to reply in time. Now I see that the problem has been solved,Thank you for your help!

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