Multi-Instituion User Admin Interface not Working

Dear Seafile Comunity,

I just try to configuere Multi Institution.

Version: Seafile Pro 8.0.17
Reference: Multi-Institutions Support - Seafile Admin Manual

As System Admin Institution management and User asignment works as espected, but when I configure a User as Institution Admin I get the following error when try to access the Institution Admin Page as User:

Url https://[server]/inst/useradmin/

image

Log from Seahub.log

2022-02-17 11:08:41,389 [ERROR] django.request:228 log_response Internal Server Error: /inst/useradmin/
Traceback (most recent call last):
File “/opt/seafile/seafile-pro-server-8.0.17/seahub/thirdpart/django/core/handlers/exception.py”, line 34, in inner
response = get_response(request)
File “/opt/seafile/seafile-pro-server-8.0.17/seahub/thirdpart/django/core/handlers/base.py”, line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File “/opt/seafile/seafile-pro-server-8.0.17/seahub/thirdpart/django/core/handlers/base.py”, line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/opt/seafile/seafile-pro-server-8.0.17/seahub/seahub/institutions/decorators.py”, line 11, in _decorated
if request.user.is_authenticated and request.user.inst_admin is True:
AttributeError: ‘User’ object has no attribute ‘inst_admin’

Seahub Config

MULTI_INSTITUTION = True
EXTRA_MIDDLEWARE_CLASSES = (
‘seahub.institutions.middleware.InstitutionMiddleware’,
)

Do you have any hint how to solve the error?

Thank you very much!

We will check the issue.

Hello, for Seafile 8.0.0 or newer version, the config should be:

MULTI_INSTITUTION = True
EXTRA_MIDDLEWARE = (
    'seahub.institutions.middleware.InstitutionMiddleware',
)

I just updated the documentation too.

Thank you very much! This resolved my issue!