7.0.10 IOS client error: AttributeError: 'User' object has no attribute 'inst_admin'

Hi all,
I am using 7.0.10 pro version now
I tested in web brower many times all funciton are working fine.
but today i tried to use ios client on both iphone and mac.
iphone client able to login even with 2FA but the seahub.log show as below
however, mac client totally can not login at all.
I installed both old and newest mac client verison from offical website.


but all totally failed to login

here is my seahub 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.

what i edit is just 2FA part and add a similar 2fa funciton in the code and working fine in web portal.
here is my seahub conf

Blockquote
#-- 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’],
},
}

Hi,

I can also confirm this error on seafile pro 7.13 and seadrive client 1.0
On server
'User' object has no attribute 'inst_admin'
On client
[04/15/20 15:29:11] request failed for https://seafile.com/api2/account/info/: <html>

But no specific problem on the transaction : files are uploaded.

Thanks for reporting, we can reproduce this error on our test server and will fix it on the next release.