Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下载代码 运行起来之后 有2个错误 #19

Open
eluotao opened this issue Jun 12, 2021 · 1 comment
Open

下载代码 运行起来之后 有2个错误 #19

eluotao opened this issue Jun 12, 2021 · 1 comment

Comments

@eluotao
Copy link

eluotao commented Jun 12, 2021

1、mysql 端口设置 并没有调用
2、./common/sys_casbin.py 26 行 提示参数数量不对 删除 True 就可以了

  File "./common/sys_casbin.py", line 26, in get_casbin
    e = casbin.Enforcer(settings.CASBIN_MODEL_PATH, adapter, True)
TypeError: __init__() takes from 1 to 3 positional arguments but 4 were given

3、除了 admin/auth/login/access-token /admin/auth/user/info 其他接口 管理员访问都提示权限不足

我现在都走不下去了

@wxy2077
Copy link
Owner

wxy2077 commented Jun 15, 2021

实在不行,你可以把casbin这个模块给去掉。上次有位老哥给我提过 issue #17 ,可能是pycasbin库有更新,我太懒了,还没改😂。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants