mirror of
https://github.com/haiwen/seafile-admin-docs.git
synced 2025-12-26 02:32:50 +00:00
Improve document on multi-institution
This commit is contained in:
parent
48867bb2e9
commit
c5d9e7d2fb
|
|
@ -4,20 +4,13 @@ Starting from version 5.1, you can add institutions into Seafile and assign user
|
|||
|
||||
## Turn on the feature
|
||||
|
||||
In `seahub_settings.py`, add `MULTI_INSTITUTION = True` to enable multi-institution feature. And add
|
||||
In `seahub_settings.py`, add `MULTI_INSTITUTION = True` to enable multi-institution feature, and add
|
||||
|
||||
=== "Seafile 7.1.22 or older"
|
||||
```py
|
||||
EXTRA_MIDDLEWARE_CLASSES += (
|
||||
'seahub.institutions.middleware.InstitutionMiddleware',
|
||||
)
|
||||
```
|
||||
=== "Seafile 8.0.0 or newer"
|
||||
```py
|
||||
```py
|
||||
EXTRA_MIDDLEWARE += (
|
||||
'seahub.institutions.middleware.InstitutionMiddleware',
|
||||
)
|
||||
```
|
||||
```
|
||||
|
||||
!!! tip "Please replease `+=` to `=` if `EXTRA_MIDDLEWARE_CLASSES` or `EXTRA_MIDDLEWARE` is not defined"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue