求助:新建用户,用户信息中,点群组,报“错误”

求助:新建用户,用户信息中,点群组,报“错误”

日志:
2022-06-02 08:23:40,686 [ERROR] seahub.api2.endpoints.admin.users:894 get ‘CcnetAPI’ object has no attribute ‘get_personal_groups_by_user’
2022-06-02 08:23:40,687 [ERROR] django.request:230 log_response Internal Server Error: /api/v2.1/admin/users/366e82633eb8408ab6063d4e0d4c5ad6@auth.local/groups/

自己来解:
修改users.py中
groups = ccnet_api.get_personal_groups_by_user(email)

groups = ccnet_api.get_groups(email)

文件位置在:/opt/seatable/seatable-server-latest/dtable-web/seahub/api2/endpoints/admin/users.py