mirror of https://github.com/zulip/zulip.git
Enable authed file uploads for squarespace
(imported from commit c72e76d27f99cd7610eb6c93b57b8ff727b461a9)
This commit is contained in:
parent
5e1caad88a
commit
0a271f149b
|
@ -67,7 +67,7 @@ def get_file_info(request, user_file):
|
||||||
return uploaded_file_name, content_type
|
return uploaded_file_name, content_type
|
||||||
|
|
||||||
def authed_upload_enabled(user_profile):
|
def authed_upload_enabled(user_profile):
|
||||||
return user_profile.realm.domain == 'zulip.com'
|
return user_profile.realm.domain in ('zulip.com', 'squarespace.com')
|
||||||
|
|
||||||
def upload_message_image(uploaded_file_name, content_type, file_data, user_profile, private=None):
|
def upload_message_image(uploaded_file_name, content_type, file_data, user_profile, private=None):
|
||||||
if private is None:
|
if private is None:
|
||||||
|
|
Loading…
Reference in New Issue