mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-18 23:18:27 +00:00
fix bug when get office feature (#7585)
This commit is contained in:
parent
1ae78af9fc
commit
c6bf21f2ab
@ -174,7 +174,10 @@ def get_office_feature_by_repo(repo):
|
|||||||
repo_feature = _check_feature(repo.repo_id)
|
repo_feature = _check_feature(repo.repo_id)
|
||||||
|
|
||||||
if not repo_feature and '@seafile_group' not in repo_owner:
|
if not repo_feature and '@seafile_group' not in repo_owner:
|
||||||
user = User.objects.get(email=repo_owner)
|
try:
|
||||||
|
user = User.objects.get(email=repo_owner)
|
||||||
|
except User.DoesNotExist:
|
||||||
|
return ENABLE_ONLYOFFICE, ENABLE_OFFICE_WEB_APP
|
||||||
role = get_user_role(user)
|
role = get_user_role(user)
|
||||||
repo_feature = ROLES_DEFAULT_OFFCICE_SUITE.get(role)
|
repo_feature = ROLES_DEFAULT_OFFCICE_SUITE.get(role)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user