7.0.10pro 版本mac和ISO客户登录报错 AttributeError: 'User' object has no attribute 'inst_admin'

大佬们好,
我用的最新版本7.0.10的pro专业版本
网页版本一切正常 测试了很多次
但是今天测试了 手机IOS 和mac的客户端版本
IOS的客户端 我可以登录 但是会在log里面有意义报错
MAC版本完全不能登录 报server error的错误
log里面都有如下报错 我已经在sehub的 setting.py里面吧所有INFO都改了debug的 log模式
但是log还是不太多 只有如下
不知道有没有人测试了最新版本 我用超级管理员 和 一般用户登录都有这个报错

引用==> seahub.log <==
2019-11-06 11:45:21,706 [DEBUG] termsandconditions:26 process_request termsandconditions.middleware
2019-11-06 11:45:21,780 [DEBUG] termsandconditions:26 process_request termsandconditions.middleware
2019-11-06 11:45:21,831 [ERROR] django.request:135 handle_uncaught_exception Internal Server Error: /api2/account/info/
Traceback (most recent call last):
File “/seafile/seafile-pro-server-7.0.10/seahub/thirdpart/django/core/handlers/exception.py”, line 41, in inner
response = get_response(request)
File “/seafile/seafile-pro-server-7.0.10/seahub/thirdpart/django/core/handlers/base.py”, line 249, in _legacy_get_response
response = self._get_response(request)
File “/seafile/seafile-pro-server-7.0.10/seahub/thirdpart/django/core/handlers/base.py”, line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File “/seafile/seafile-pro-server-7.0.10/seahub/thirdpart/django/core/handlers/base.py”, line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/seafile/seafile-pro-server-7.0.10/seahub/thirdpart/django/views/decorators/csrf.py”, line 58, in wrapped_view
return view_func(*args, **kwargs)
File “/seafile/seafile-pro-server-7.0.10/seahub/thirdpart/django/views/generic/base.py”, line 68, in view
return self.dispatch(request, *args, **kwargs)
File “/seafile/seafile-pro-server-7.0.10/seahub/seahub/api2/base.py”, line 23, in dispatch
response = super(APIView, self).dispatch(*a, **kw)
File “/seafile/seafile-pro-server-7.0.10/seahub/thirdpart/rest_framework/views.py”, line 466, in dispatch
response = self.handle_exception(exc)
File “/seafile/seafile-pro-server-7.0.10/seahub/seahub/api2/base.py”, line 20, in handle_exception
return super(APIView, self).handle_exception(exc)
File “/seafile/seafile-pro-server-7.0.10/seahub/thirdpart/rest_framework/views.py”, line 463, in dispatch
response = handler(request, *args, **kwargs)
File “/seafile/seafile-pro-server-7.0.10/seahub/seahub/api2/views.py”, line 340, in get
return Response(self._get_account_info(request))
File “/seafile/seafile-pro-server-7.0.10/seahub/seahub/api2/views.py”, line 333, in _get_account_info
info[‘is_inst_admin’] = request.user.inst_admin
AttributeError: ‘User’ object has no attribute ‘inst_admin’
==> file_updates_sender.log <==
WARNING:root:[seafobj] database: mysql, name: seafile-db
[2019-11-06 11:45:28.871612] Start sending file updates emails…
[2019-11-06 11:45:28.876122] Finish sending file updates emails.

mac客户端改名字了 我安装了新的
两个版本都报错
image

唯一改动了一点点 就是加了一个SMS的方法 但是网页端没有任何问题

下面是我的seahub conf

引用
#-- coding: utf-8 --
SECRET_KEY = “fu3aj()-gkv(vzs0h-+be09y6jfysb7kv-jv)f_^5rbg)#cj
FILE_SERVER_ROOT = “http://localhost/seafhttp
DATABASES = {
‘default’: {
‘ENGINE’: ‘django.db.backends.mysql’,
‘NAME’: ‘seahub-db’,
‘USER’: ‘seafile’,
‘PASSWORD’: ‘seafile’,
‘HOST’: ‘10.0.0.203’,
‘PORT’: ‘3306’
}
}
#Enable Office Online Server
#ENABLE_OFFICE_WEB_APP = True
MULTI_INSTITUTION = True
EXTRA_MIDDLEWARE_CLASSES = (
‘seahub.institutions.middleware.InstitutionMiddleware’,
)
ENABLE_TOW_FACTOR_AUTH = True
TWO_FACTOR_SMS_GATEWAY = ‘seahub.two_factor.gateways.onewaysms.Onewaysms’
#TWO_FACTOR_SMS_GATEWAY = ‘seahub.two_factor.gateways.fake.Fake’
ENABLE_STORAGE_CLASSES = True
#STORAGE_CLASS_MAPPING_POLICY = ‘USER_SELECT’
#STORAGE_CLASS_MAPPING_POLICY = ‘REPO_ID_MAPPING’
STORAGE_CLASS_MAPPING_POLICY = ‘ROLE_BASED’
ENABLED_ROLE_PERMISSIONS = {
‘default’: {
‘can_add_repo’: True,
‘can_add_group’: True,
‘can_add_public_repo’: True,
‘can_view_org’: True,
‘can_use_global_address_book’: True,
‘can_generate_share_link’: True,
‘can_generate_upload_link’: True,
‘can_invite_guest’: True,
‘can_connect_with_android_clients’: True,
‘can_connect_with_ios_clients’: True,
‘can_connect_with_desktop_clients’: True,
‘storage_ids’: [ ‘default_storage’ ],
},
‘xxxuser’: {
‘can_add_group’: True,
‘can_add_public_repo’: True,
‘can_add_repo’: True,
‘can_connect_with_android_clients’: True,
‘can_connect_with_desktop_clients’: True,
‘can_connect_with_ios_clients’: True,
‘can_drag_drop_folder_to_sync’: True,
‘can_export_files_via_mobile_client’: True,
‘can_generate_share_link’: True,
‘can_generate_upload_link’: True,
‘can_invite_guest’: False,
‘can_publish_repo’: False,
‘can_send_share_link_mail’: False,
‘can_use_global_address_book’: False,
‘can_use_wiki’: False,
‘can_view_org’: False,
#‘role_quota’: ‘10g’,
‘storage_ids’: [ ‘xxx_storage’],
},
}