feat: custom webapp logo (#1766)

This commit is contained in:
zxhlyh 2023-12-18 16:25:37 +08:00 committed by GitHub
commit 5bb841935e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
40 changed files with 888 additions and 24 deletions

View file

@ -63,6 +63,8 @@ def cloud_edition_billing_resource_check(resource: str,
abort(403, error_msg)
elif resource == 'vector_space' and 0 < vector_space['limit'] <= vector_space['size']:
abort(403, error_msg)
elif resource == 'workspace_custom' and not billing_info['can_replace_logo']:
abort(403, error_msg)
elif resource == 'annotation' and 0 < annotation_quota_limit['limit'] <= annotation_quota_limit['size']:
abort(403, error_msg)
else: