#RUN cd ${BASE_DIR} && patch -p0 < ${TMP_PATCH_DIR}/038-appdata-folder-based-on-config.patch
RUN cd${BASE_DIR}&& patch -p0 < ${TMP_PATCH_DIR}/038-appdata-folder-based-on-config.patch
RUN rm-rf${TMP_PATCH_DIR}
@@ -245,6 +245,8 @@ RUN sed -i "s/field === 'displayname'//" ${BASE_DIR}/apps/settings/js/federation
# Seds to allow deletion of LDAP users
RUN sed-i"s/return in_array(\$user->getBackendClassName(), \['Database', 'Guests'\]);/return in_array(\$user->getBackendClassName(), ['Database', 'Guests', 'LDAP']);/"${BASE_DIR}/custom_apps/drop_account/lib/Service/DeletionCapabilityService.php
# Optimize user-count check: search with limit 2 instead of full count
RUN sed-i"s/return \$this->userManager->countUsers() < 2;/return count(\$this->userManager->search('', 2)) < 2;/"${BASE_DIR}/custom_apps/drop_account/lib/Service/DeletionCapabilityService.php
# Add id to delete account settings section and hide it by default
RUN sed-i's/"NcSettingsSection",{attrs:{/"NcSettingsSection",{attrs:{id:"delete-account-settings-section",style:"visibility:hidden;",/'${BASE_DIR}/custom_apps/drop_account/js/drop_account-personal-settings.mjs
@@ -4,13 +4,12 @@ Subject: [PATCH] Enable appdata folder location can be set up dynamatically
We want to setup appdata folder dynamatically using config. This is specially needed for objectStore setup, so appdata files can be locally accessable, which minimize loadtime. The `appdatadirectory` new config value is introduced by this patch.