Remove DynamicSetting usage for mobile app backend on OSS (#1204)
# What this PR does Make so there's no need to populate `mobile_app_settings` DynamicSetting when using the OSS license to turn on the mobile app backend.
This commit is contained in:
parent
3bc593cdb2
commit
cf1a1cd7f3
1 changed files with 4 additions and 0 deletions
|
|
@ -53,6 +53,10 @@ class MobileAppBackend(BaseMessagingBackend):
|
|||
|
||||
@staticmethod
|
||||
def is_enabled_for_organization(organization):
|
||||
# Setting FEATURE_MOBILE_APP_INTEGRATION_ENABLED to True is enough to enable mobile app on OSS instances
|
||||
if settings.LICENSE == settings.OPEN_SOURCE_LICENSE_NAME:
|
||||
return True
|
||||
|
||||
mobile_app_settings, _ = DynamicSetting.objects.get_or_create(
|
||||
name="mobile_app_settings", defaults={"json_value": {"org_ids": []}}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue