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

后台账号无权限 #51

Open
AngusChiang opened this issue Apr 24, 2023 · 1 comment
Open

后台账号无权限 #51

AngusChiang opened this issue Apr 24, 2023 · 1 comment

Comments

@AngusChiang
Copy link

使用createsuperuser创建用户后登录后台提示无权限

docker exec -it flyapps python manage.py add_user_download_times 04485be6e2a411ed93d90242ac1f1f64 99999手动调整下载次数后提示为普通会员

[INFO][2023-04-24 22:08:57,066][caches.py:update_order_info:298]04485be6e2a411ed93d90242ac1f1f64-safwr23fwf@gmail.com-None-普通会员 订单 1202342422857657314594648 msg:管理员充值下载次数 99999 ,现共可用次数 99999

@nineaiyu
Copy link
Owner

后台登陆同时判断了role字段,需要你修改下数据库,打开 api_userinfo 表,把该用户的role修改为3

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