首页   注册   登录
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 · 9个月前 · 178 次点击 
    这是一个创建于 272 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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.

    178 次点击  ∙  0 人收藏  
    Tweet Weibo 忽略主题 
    6 条回复   5个月前
    AndyX
        1
    AndyX   9个月前  

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

    BenP
        2
    BenP   9个月前  

    Thank you for the quick answer.

    hsluoyz
        3
    hsluoyz   9个月前  
    Yaco
        4
    Yaco   6个月前  

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

    hsluoyz
        5
    hsluoyz   6个月前  

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

    Yaco
        6
    Yaco   5个月前  

    @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   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   0 人在线   最高记录 3   ·     选择语言  ·     选择编辑器
    创意工作者们的社区
    World is powered by code
    VERSION: 00d4f20 · 40ms · UTC 08:22 · PVG 16:22 · LAX 01:22 · JFK 04:22
    ♥ Do have faith in what you're doing.