@saltcorn/server 1.6.0-beta.1 → 1.6.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +72 -3
- package/app.js +32 -12
- package/auth/admin.js +109 -22
- package/auth/routes.js +178 -61
- package/auth/testhelp.js +9 -19
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/_saltcorn_admin-models.models_snapshot.Snapshot.html +2 -2
- package/docs/classes/_saltcorn_common-code.relations_relation.Relation.html +3 -3
- package/docs/classes/_saltcorn_common-code.relations_relations_finder.RelationsFinder.html +5 -5
- package/docs/classes/_saltcorn_data.diagram_cy_raster.CytoscapeRaster.html +4 -4
- package/docs/classes/_saltcorn_data.diagram_nodes_dummy_node.DummyNode.html +4 -4
- package/docs/classes/_saltcorn_data.diagram_nodes_node.Node.html +4 -4
- package/docs/classes/_saltcorn_data.diagram_nodes_page_node.PageNode.html +4 -4
- package/docs/classes/_saltcorn_data.diagram_nodes_table_node.TableNode.html +4 -4
- package/docs/classes/_saltcorn_data.diagram_nodes_trigger_node.TriggerNode.html +4 -4
- package/docs/classes/_saltcorn_data.diagram_nodes_view_node.ViewNode.html +4 -4
- package/docs/classes/_saltcorn_data.mobile-mocks_node_async_hooks.AsyncLocalStorage.html +2 -2
- package/docs/classes/_saltcorn_data.models_crash.Crash.html +2 -2
- package/docs/classes/_saltcorn_data.models_eventlog.EventLog.html +2 -2
- package/docs/classes/_saltcorn_data.models_field.Field.html +9 -9
- package/docs/classes/_saltcorn_data.models_fieldrepeat.FieldRepeat.html +2 -2
- package/docs/classes/_saltcorn_data.models_file.File.html +21 -21
- package/docs/classes/_saltcorn_data.models_form.Form.html +2 -2
- package/docs/classes/_saltcorn_data.models_internal_mail_queue.MailQueue.html +4 -4
- package/docs/classes/_saltcorn_data.models_internal_push_message_helper.PushMessageHelper.html +7 -7
- package/docs/classes/_saltcorn_data.models_library.Library.html +2 -2
- package/docs/classes/_saltcorn_data.models_model.Model.html +2 -2
- package/docs/classes/_saltcorn_data.models_model_instance.ModelInstance.html +2 -2
- package/docs/classes/_saltcorn_data.models_notification.Notification.html +2 -2
- package/docs/classes/_saltcorn_data.models_page.Page.html +12 -11
- package/docs/classes/_saltcorn_data.models_page_group.PageGroup.html +16 -16
- package/docs/classes/_saltcorn_data.models_page_group_member.PageGroupMember.html +8 -8
- package/docs/classes/_saltcorn_data.models_plugin.Plugin.html +45 -10
- package/docs/classes/_saltcorn_data.models_role.Role.html +2 -2
- package/docs/classes/_saltcorn_data.models_table.Table.html +67 -65
- package/docs/classes/_saltcorn_data.models_table_constraints.TableConstraint.html +2 -2
- package/docs/classes/_saltcorn_data.models_tag.Tag.html +2 -2
- package/docs/classes/_saltcorn_data.models_tag_entry.TagEntry.html +2 -2
- package/docs/classes/_saltcorn_data.models_trigger.Trigger.html +22 -20
- package/docs/classes/_saltcorn_data.models_user.User.html +32 -32
- package/docs/classes/_saltcorn_data.models_view.View.html +16 -15
- package/docs/classes/_saltcorn_data.models_workflow.Workflow.html +2 -2
- package/docs/classes/_saltcorn_data.models_workflow_run.WorkflowRun.html +2 -2
- package/docs/classes/_saltcorn_data.models_workflow_step.WorkflowStep.html +2 -2
- package/docs/classes/_saltcorn_data.models_workflow_trace.MetaData.html +2 -2
- package/docs/classes/_saltcorn_data.models_workflow_trace.WorkflowTrace.html +2 -2
- package/docs/classes/_saltcorn_mobile-builder.mobile-builder.MobileBuilder.html +2 -3
- package/docs/classes/_saltcorn_mobile-builder.utils_capacitor-helper.CapacitorHelper.html +2 -2
- package/docs/enums/_saltcorn_common-code.relations_relation_types.RelationType.html +2 -2
- package/docs/enums/_saltcorn_common-code.relations_relation_types.ViewDisplayType.html +2 -2
- package/docs/functions/_saltcorn_admin-models.models_config-check.runConfigurationCheck.html +1 -1
- package/docs/functions/_saltcorn_common-code.relations_relation_helpers.buildRelationPath.html +1 -1
- package/docs/functions/_saltcorn_common-code.relations_relation_helpers.buildTableCaches.html +1 -1
- package/docs/functions/_saltcorn_common-code.relations_relation_helpers.parseLegacyRelation.html +1 -1
- package/docs/functions/_saltcorn_common-code.relations_relation_helpers.parseRelationPath.html +1 -1
- package/docs/functions/_saltcorn_common-code.tests_test_data.fixturesData.html +1 -1
- package/docs/functions/_saltcorn_common-code.tests_test_data.withAnotherUserField.html +1 -1
- package/docs/functions/_saltcorn_common-code.tests_test_data.withKeyFromLayerThree.html +1 -1
- package/docs/functions/_saltcorn_common-code.tests_test_data.withKeyFromLayerTwo.html +1 -1
- package/docs/functions/_saltcorn_common-code.tests_test_data.withMultipleInbounds.html +1 -1
- package/docs/functions/_saltcorn_common-code.tests_test_data.withSecondTopicField.html +1 -1
- package/docs/functions/_saltcorn_common-code.tests_test_data.withSimplePostTopicrelation.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.action_link.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.action_url.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.fill_presets.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.getForm.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.get_view_link_query.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.get_viewable_fields.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.get_viewable_fields_from_layout.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.make_link.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.objToQueryString.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.parse_view_select.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.setDateLocales.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.splitUniques.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.standardBlockDispatch.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.standardLayoutRowVisitor.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.transformForm.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.updateViewSelect.html +1 -1
- package/docs/functions/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.view_linker.html +1 -1
- package/docs/functions/_saltcorn_data.db_connect_mobile.getConnectObject.html +1 -1
- package/docs/functions/_saltcorn_data.db_reset_schema.reset.html +1 -1
- package/docs/functions/_saltcorn_data.diagram_cy_generate_utils.generateCyCode.html +1 -1
- package/docs/functions/_saltcorn_data.diagram_cy_generate_utils.genereateCyCfg.html +1 -1
- package/docs/functions/_saltcorn_data.diagram_node_extract_utils.buildObjectTrees.html +1 -1
- package/docs/functions/_saltcorn_data.diagram_node_extract_utils.extractFromColumns.html +1 -1
- package/docs/functions/_saltcorn_data.diagram_node_extract_utils.extractFromLayout.html +1 -1
- package/docs/functions/_saltcorn_data.diagram_node_extract_utils.extractViewToCreate.html +1 -1
- package/docs/functions/_saltcorn_data.migrate.create_blank_migration.html +1 -1
- package/docs/functions/_saltcorn_data.migrate.getMigrationsInDB.html +1 -1
- package/docs/functions/_saltcorn_data.migrate.migrate.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202102091312.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202210051058.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202210101540.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202304281224.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202307211459.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202502131103.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202508011455.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202510152058.js.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202603101553.sql_pg.html +1 -1
- package/docs/functions/_saltcorn_data.migrations_202604111200.js.html +1 -0
- package/docs/functions/_saltcorn_data.migrations_202604141200.js.html +1 -0
- package/docs/functions/_saltcorn_data.mobile-mocks_node_child_process.execSync.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs.createReadStream.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs.readdirSync.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs.writeFileSync.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.mkdir.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.readFile.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.readdir.html +1 -0
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.stat.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.unlink.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_fs_promises.writeFile.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_latest-version.latestVersion.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_v8.deserialize.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_node_v8.serialize.html +1 -1
- package/docs/functions/_saltcorn_data.mobile-mocks_npm_env-paths.envPaths.html +1 -1
- package/docs/functions/_saltcorn_data.model-helper.get_predictor.html +1 -1
- package/docs/functions/_saltcorn_data.model-helper.run_jupyter_model.html +1 -1
- package/docs/functions/_saltcorn_data.model-helper.shorten_trackback.html +1 -1
- package/docs/functions/_saltcorn_data.model-helper.write_csv.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_async_json_stream.async_json_stream.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_query.aggregation_query_fields.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_query.getAggAndField.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_query.joinfield_renamer.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_query.process_aggregations.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.buildKeyFromRelative.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.copyObject.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.deleteObject.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.downloadBuffer.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.getPublicFileUrl.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.getResolvedBucket.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.getS3Client.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.getServeUrl.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.getSignedFileUrl.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.headObject.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.isS3Enabled.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.listS3Folder.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.publicUrlToRelativePath.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.relativeKeyToPath.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.setObjectMetadata.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_s3_helpers.uploadBuffer.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_table_helper.boolExamples.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_table_helper.colorExamples.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_table_helper.floatExamples.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_table_helper.get_formula_examples.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_table_helper.intExamples.html +1 -1
- package/docs/functions/_saltcorn_data.models_internal_table_helper.stringExamples.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.build_schema_data.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.calcfldViewConfig.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.calcfldViewOptions.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.calcrelViewOptions.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.displayType.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.field_picker_fields.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.generate_joined_query.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.getActionConfigFields.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.get_child_views.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.get_inbound_relation_opts.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.get_inbound_self_relation_opts.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.get_link_view_opts.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.get_many_to_many_relation_opts.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.get_parent_views.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.initial_config_all_fields.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.json_list_to_external_table.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.link_view.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.pathToState.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.picked_fields_to_query.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.readState.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.readStateStrict.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.runCollabEvents.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.run_action_column.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.stateFieldsToQuery.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.stateFieldsToWhere.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.stateToQueryString.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-helper.strictParseInt.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-testing.auto_test_plugin.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-testing.check_view_columns.html +1 -1
- package/docs/functions/_saltcorn_data.plugin-testing.generate_attributes.html +1 -1
- package/docs/functions/_saltcorn_data.standard-menu.create_standard_menu.html +1 -1
- package/docs/functions/_saltcorn_data.tests_assertions.assertIsErrorMsg.html +1 -1
- package/docs/functions/_saltcorn_data.tests_assertions.assertIsErrorsMsg.html +1 -1
- package/docs/functions/_saltcorn_data.tests_assertions.assertIsRow.html +1 -1
- package/docs/functions/_saltcorn_data.tests_assertions.assertIsSet.html +1 -1
- package/docs/functions/_saltcorn_data.tests_assertions.assertIsType.html +1 -1
- package/docs/functions/_saltcorn_data.tests_assertions.assertsIsSuccessMessage.html +1 -1
- package/docs/functions/_saltcorn_data.tests_assertions.assertsObjectIsUser.html +1 -1
- package/docs/functions/_saltcorn_data.tests_common_helpers.createAnotherUserField.html +1 -1
- package/docs/functions/_saltcorn_data.tests_common_helpers.createKeyFromLevelTwo.html +1 -1
- package/docs/functions/_saltcorn_data.tests_common_helpers.createLevelThreeInbound.html +1 -1
- package/docs/functions/_saltcorn_data.tests_common_helpers.createMultipleInbounds.html +1 -1
- package/docs/functions/_saltcorn_data.tests_common_helpers.createSecondTopicField.html +1 -1
- package/docs/functions/_saltcorn_data.tests_common_helpers.prepareEmployeeDepartment.html +1 -1
- package/docs/functions/_saltcorn_data.tests_common_helpers.prepareSimpleTopicPostRelation.html +1 -1
- package/docs/functions/_saltcorn_data.tests_remote_query_helper.deleteViewFromServer.html +1 -1
- package/docs/functions/_saltcorn_data.tests_remote_query_helper.prepareQueryEnviroment.html +1 -1
- package/docs/functions/_saltcorn_data.tests_remote_query_helper.sendViewToServer.html +1 -1
- package/docs/functions/_saltcorn_data.translate.hasLLM.html +1 -1
- package/docs/functions/_saltcorn_data.translate.translate.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.ftsFieldsSqlExpr.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.mkSelectOptions.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.mkWhere.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.orderByIsObject.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.orderByIsOperator.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.prefixFieldsInWhere.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.sqlBinOp.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.sqlFun.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.sqlsanitize.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.sqlsanitizeAllowDots.html +1 -1
- package/docs/functions/_saltcorn_db-common.internal.subSelectWhere.html +1 -1
- package/docs/functions/_saltcorn_db-common.multi-tenant.enable_multi_tenant.html +1 -1
- package/docs/functions/_saltcorn_db-common.multi-tenant.getRequestContext.html +1 -1
- package/docs/functions/_saltcorn_db-common.multi-tenant.getTenantSchema.html +1 -1
- package/docs/functions/_saltcorn_db-common.multi-tenant.init.html +1 -1
- package/docs/functions/_saltcorn_db-common.multi-tenant.is_it_multi_tenant.html +1 -1
- package/docs/functions/_saltcorn_db-common.multi-tenant.runWithTenant.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.buildInsertBulkSql.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.buildInsertSql.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.commitAndBeginNewTransaction.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.doCount.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.doDeleteWhere.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.doListScTables.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.doListTables.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.doListUserDefinedTables.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.do_add_index.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.do_drop_index.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.mkVal.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.openOrUseTransaction.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.reprAsJson.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.slugify.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.tryCatchInTransaction.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.whenTransactionisFree.html +1 -1
- package/docs/functions/_saltcorn_db-common.sqlite-commons.withTransaction.html +1 -1
- package/docs/functions/_saltcorn_markup.mktag.mkTag.html +1 -1
- package/docs/functions/_saltcorn_markup.tabs.tabs.html +1 -1
- package/docs/functions/_saltcorn_markup.workflow.renderWorkflow.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.androidFeatures.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.androidPermissions.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.buildTablesFile.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.copyPrepopulatedDb.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.copyServerFiles.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.copyShareExtFiles.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.copySiteLogo.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.copyTranslationFiles.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.createSqliteDb.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.extractDomain.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.generateAndroidVersionCode.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.hasAuthMethod.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyAndroidManifest.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyAppDelegate.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyConfigXml.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyGradleConfig.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyInfoPlist.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyShareViewController.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.modifyXcodeProjectFile.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepAppIcon.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepareAppIcon.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepareBuildDir.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepareExportOptionsPlist.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepareSplashIcon.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.prepareSplashPage.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.runAddEntitlementsScript.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writeCapacitorConfig.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writeCfgFile.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writeDataExtractionRules.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writeEntitlementsPlist.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writeNetworkSecurityConfig.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writePodfile.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_common-build-utils.writePrivacyInfo.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.bundleMobileAppCode.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.bundlePackagesAndPlugins.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.copyOptionalSource.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.copyPluginMobileAppDirs.html +1 -1
- package/docs/functions/_saltcorn_mobile-builder.utils_package-bundle-utils.copyPublicDirs.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.add_index.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.add_unique_constraint.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.count.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.deleteWhere.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.drop_index.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.drop_reset_schema.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.drop_unique_constraint.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.init.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.insert.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.insertRows.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.listScTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.listTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.listUserDefinedTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.query.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.select.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.selectMaybeOne.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.selectOne.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.setConnectionObject.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.tableExists.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.time.html +1 -1
- package/docs/functions/_saltcorn_sqlite-mobile.sqlite_capacitor.update.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.add_index.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.add_unique_constraint.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.begin.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.changeConnection.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.close.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.commit.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.count.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.deleteWhere.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.dropTable.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.dropTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.drop_index.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.drop_reset_schema.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.drop_unique_constraint.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.getVersion.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.get_db_filepath.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.get_sql_logging.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.init.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.insert.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.listScTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.listTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.listUserDefinedTables.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.query.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.rollback.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.select.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.selectMaybeOne.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.selectOne.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.set_sql_logging.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.sql_log.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.update.html +1 -1
- package/docs/functions/_saltcorn_sqlite.sqlite.updateWhere.html +1 -1
- package/docs/functions/_saltcorn_types.base_types.instanceOWithHtmlFile.html +1 -1
- package/docs/functions/_saltcorn_types.base_types.instanceOfFieldViewEdit.html +1 -1
- package/docs/functions/_saltcorn_types.base_types.instanceOfFieldViewShow.html +1 -1
- package/docs/functions/_saltcorn_types.base_types.instanceOfPack.html +1 -1
- package/docs/functions/_saltcorn_types.common_types.instanceOfErrorMsg.html +1 -1
- package/docs/functions/_saltcorn_types.common_types.instanceOfSuccessMsg.html +1 -1
- package/docs/functions/_saltcorn_types.common_types.instanceOfType.html +1 -1
- package/docs/functions/_saltcorn_types.model-abstracts_abstract_field.instanceOfField.html +1 -1
- package/docs/functions/_saltcorn_types.model-abstracts_abstract_page.instanceOfPage.html +1 -1
- package/docs/functions/_saltcorn_types.model-abstracts_abstract_plugin.instanceOfPlugin.html +1 -1
- package/docs/functions/_saltcorn_types.model-abstracts_abstract_table.instanceOfTable.html +1 -1
- package/docs/functions/_saltcorn_types.model-abstracts_abstract_view.instanceOfView.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/interfaces/_saltcorn_db-common.dbtypes.UserLike.html +2 -2
- package/docs/interfaces/_saltcorn_markup.types.TagExports.html +2 -2
- package/docs/interfaces/_saltcorn_mobile-builder.utils_common-build-utils.ScCapacitorConfig.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_field.AbstractField.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_field.AbstractFieldRepeat.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_form.AbstractForm.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_page.AbstractPage.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_page_group.AbstractPageGroup.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_page_group_member.AbstractPageGroupMember.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_plugin.AbstractPlugin.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_role.AbstractRole.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_table.AbstractTable.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_tag.AbstractTag.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_tag_entry.AbstractTagEntry.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_trigger.AbstractTrigger.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_user.AbstractUser.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_user.ForUserRequest.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_view.AbstractView.html +2 -2
- package/docs/interfaces/_saltcorn_types.model-abstracts_abstract_workflow.AbstractWorkflow.html +2 -2
- package/docs/modules/_saltcorn_data.html +1 -1
- package/docs/modules/_saltcorn_data.migrations_202604091531.html +1 -0
- package/docs/modules/_saltcorn_data.migrations_202604111200.html +1 -0
- package/docs/modules/_saltcorn_data.migrations_202604141200.html +1 -0
- package/docs/modules/_saltcorn_data.mobile-mocks_node_fs.html +1 -1
- package/docs/modules/_saltcorn_data.mobile-mocks_node_fs_promises.html +1 -1
- package/docs/modules/_saltcorn_data.mobile-mocks_npm_npm-registry-fetch.html +1 -0
- package/docs/modules/_saltcorn_data.mobile-mocks_saltcorn_admin-models-tenant.html +1 -0
- package/docs/modules/_saltcorn_data.mobile-mocks_saltcorn_plugins-loader-plugin-installer.html +1 -0
- package/docs/modules/_saltcorn_data.mobile-mocks_saltcorn_plugins-loader-stable-versioning.html +1 -0
- package/docs/modules/_saltcorn_data.models_index.discovery.html +1 -1
- package/docs/types/_saltcorn_data.diagram_node_extract_utils.ExtractOpts.html +2 -2
- package/docs/types/_saltcorn_data.diagram_node_extract_utils.ExtractResult.html +2 -2
- package/docs/types/_saltcorn_data.diagram_nodes_node.NodeType.html +1 -1
- package/docs/types/_saltcorn_data.models_config.ConfigTypes.html +1 -1
- package/docs/types/_saltcorn_data.models_config.SingleConfig.html +1 -1
- package/docs/types/_saltcorn_data.models_eventlog.EventLogCfg.html +2 -2
- package/docs/types/_saltcorn_data.models_file.FileCfg.html +2 -2
- package/docs/types/_saltcorn_data.models_form.AdditionalButton.html +1 -1
- package/docs/types/_saltcorn_data.models_form.FormCfg.html +2 -2
- package/docs/types/_saltcorn_data.models_internal_push_message_helper.MobileSubscription.html +2 -2
- package/docs/types/_saltcorn_data.models_internal_push_message_helper.WebPushSubscription.html +2 -2
- package/docs/types/_saltcorn_data.models_internal_s3_helpers.S3HeadResult.html +1 -1
- package/docs/types/_saltcorn_data.models_internal_s3_helpers.S3ListResult.html +2 -2
- package/docs/types/_saltcorn_data.models_page_group.ScreenInfoParams.html +2 -2
- package/docs/types/_saltcorn_data.models_table.ChildRelations.html +2 -2
- package/docs/types/_saltcorn_data.models_table.ParentRelations.html +2 -2
- package/docs/types/_saltcorn_data.models_table.RelationData.html +2 -2
- package/docs/types/_saltcorn_data.models_tag_entry.TagEntryCfg.html +1 -1
- package/docs/types/_saltcorn_data.models_view.FindViewsPred.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.AggregationOptions.html +2 -2
- package/docs/types/_saltcorn_db-common.dbtypes.CoordOpts.html +2 -2
- package/docs/types/_saltcorn_db-common.dbtypes.DatabaseClient.html +2 -2
- package/docs/types/_saltcorn_db-common.dbtypes.JoinField.html +2 -2
- package/docs/types/_saltcorn_db-common.dbtypes.JoinFields.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.JoinOptions.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.JsonPath.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.JsonPathElem.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.Operator.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.PartialSome.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.PrimaryKeyValue.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.Row.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.SelectOptions.html +2 -2
- package/docs/types/_saltcorn_db-common.dbtypes.StrongRow.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.SubselectOptions.html +2 -2
- package/docs/types/_saltcorn_db-common.dbtypes.Value.html +1 -1
- package/docs/types/_saltcorn_db-common.dbtypes.Where.html +2 -2
- package/docs/types/_saltcorn_db-common.sqlite-commons.SqlAndValues.html +2 -2
- package/docs/types/_saltcorn_db-common.types.DbExportsType.html +2 -2
- package/docs/types/_saltcorn_db-common.types.GenObj.html +1 -1
- package/docs/types/_saltcorn_markup.emergency_layout.WrapParams.html +2 -2
- package/docs/types/_saltcorn_markup.helpers.CheckBoxGroupOpts.html +2 -2
- package/docs/types/_saltcorn_markup.helpers.PaginationOpts.html +2 -2
- package/docs/types/_saltcorn_markup.helpers.RadioGroupOpts.html +2 -2
- package/docs/types/_saltcorn_markup.helpers.SearchBarOpts.html +2 -2
- package/docs/types/_saltcorn_markup.layout.RenderOpts-1.html +2 -2
- package/docs/types/_saltcorn_markup.layout.RenderOpts.html +2 -2
- package/docs/types/_saltcorn_markup.mjml-layout.RenderOpts.html +2 -2
- package/docs/types/_saltcorn_markup.table.HeadersParams.html +2 -2
- package/docs/types/_saltcorn_markup.table.OptsParams.html +2 -2
- package/docs/types/_saltcorn_markup.types.AttributeVal.html +1 -1
- package/docs/types/_saltcorn_markup.types.Attributes.html +2 -2
- package/docs/types/_saltcorn_markup.types.ClassVal.html +1 -1
- package/docs/types/_saltcorn_markup.types.Element.html +1 -1
- package/docs/types/_saltcorn_markup.types.Falsy.html +1 -1
- package/docs/types/_saltcorn_markup.types.StyleVal.html +1 -1
- package/docs/types/_saltcorn_markup.types.TagFunction.html +1 -1
- package/docs/types/_saltcorn_mobile-builder.mobile-builder.IosCfg.html +2 -2
- package/docs/types/_saltcorn_mobile-builder.utils_capacitor-helper.CapacitorCfg.html +2 -2
- package/docs/types/_saltcorn_types.base_types.Action.html +5 -4
- package/docs/types/_saltcorn_types.base_types.AuthenticationMethod.html +2 -2
- package/docs/types/_saltcorn_types.base_types.CalcJoinfield.html +2 -2
- package/docs/types/_saltcorn_types.base_types.CapacitorPlugin.html +2 -2
- package/docs/types/_saltcorn_types.base_types.CodePagePack.html +2 -2
- package/docs/types/_saltcorn_types.base_types.Column.html +2 -2
- package/docs/types/_saltcorn_types.base_types.ConnectObjType.html +2 -2
- package/docs/types/_saltcorn_types.base_types.ConnectedObjects.html +2 -2
- package/docs/types/_saltcorn_types.base_types.CopilotSkill.html +2 -2
- package/docs/types/_saltcorn_types.base_types.ErrorObj.html +2 -2
- package/docs/types/_saltcorn_types.base_types.FieldLike.html +1 -1
- package/docs/types/_saltcorn_types.base_types.FieldView.html +1 -1
- package/docs/types/_saltcorn_types.base_types.Header.html +2 -2
- package/docs/types/_saltcorn_types.base_types.JoinFieldOption.html +2 -2
- package/docs/types/_saltcorn_types.base_types.Layout.html +1 -1
- package/docs/types/_saltcorn_types.base_types.MenuItem.html +2 -2
- package/docs/types/_saltcorn_types.base_types.MobileConfig.html +2 -3
- package/docs/types/_saltcorn_types.base_types.ModelPattern.html +6 -6
- package/docs/types/_saltcorn_types.base_types.Pack.html +2 -2
- package/docs/types/_saltcorn_types.base_types.Plugin.html +1 -1
- package/docs/types/_saltcorn_types.base_types.PluginFunction.html +3 -2
- package/docs/types/_saltcorn_types.base_types.PluginLayout.html +2 -2
- package/docs/types/_saltcorn_types.base_types.PluginRoute.html +2 -2
- package/docs/types/_saltcorn_types.base_types.PluginSourceType.html +1 -1
- package/docs/types/_saltcorn_types.base_types.PluginType.html +2 -2
- package/docs/types/_saltcorn_types.base_types.PluginWrap.html +1 -1
- package/docs/types/_saltcorn_types.base_types.PluginWrapArg.html +2 -2
- package/docs/types/_saltcorn_types.base_types.RelationOption.html +2 -2
- package/docs/types/_saltcorn_types.base_types.Req.html +2 -2
- package/docs/types/_saltcorn_types.base_types.Res.html +2 -2
- package/docs/types/_saltcorn_types.base_types.ResultType.html +2 -2
- package/docs/types/_saltcorn_types.base_types.RouteAction.html +1 -1
- package/docs/types/_saltcorn_types.base_types.RunExtra.html +1 -1
- package/docs/types/_saltcorn_types.base_types.SlugStepType.html +2 -2
- package/docs/types/_saltcorn_types.base_types.StepResType.html +1 -1
- package/docs/types/_saltcorn_types.base_types.SubField.html +2 -2
- package/docs/types/_saltcorn_types.base_types.TableProvider.html +2 -2
- package/docs/types/_saltcorn_types.base_types.TableQuery.html +2 -2
- package/docs/types/_saltcorn_types.base_types.Tablely.html +1 -1
- package/docs/types/_saltcorn_types.base_types.ViewTemplate.html +3 -2
- package/docs/types/_saltcorn_types.common_types.ErrorMessage.html +2 -2
- package/docs/types/_saltcorn_types.common_types.GenObj.html +1 -1
- package/docs/types/_saltcorn_types.common_types.ReqRes.html +2 -2
- package/docs/types/_saltcorn_types.common_types.ResultMessage.html +1 -1
- package/docs/types/_saltcorn_types.common_types.SuccessMessage.html +2 -2
- package/docs/types/_saltcorn_types.common_types.Type.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_event_log.EventLogPack.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_field.FieldCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_field.InputType.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_form.AdditionalButton.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_library.LibraryCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_library.LibraryPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_model.ModelCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_model.ModelPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_model_instance.ModelInstanceCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_model_instance.ModelInstancePack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_page.PageCfg.html +3 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_page.PagePack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_page_group.PageGroupCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_page_group.PageGroupPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_page_group_member.PageGroupMemberCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_page_group_member.PageGroupMemberPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_plugin.PluginCfg.html +3 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_plugin.PluginPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_role.RoleCfg.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_role.RolePack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_table.TableCfg.html +3 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_table.TablePack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_tag.TagPack.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_tag_entry.TagEntryPack.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_trigger.TriggerCfg.html +3 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_trigger.TriggerPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_view.ViewCfg.html +3 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_view.ViewPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow.ConfigWorkflowStep.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow.RunResult.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow_run.WorkflowRunCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow_step.WorkflowStepCfg.html +2 -2
- package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow_step.WorkflowStepPack.html +1 -1
- package/docs/types/_saltcorn_types.model-abstracts_abstract_workflow_trace.WorkflowTraceCfg.html +2 -2
- package/docs/variables/_saltcorn_admin-models..backup.create_backup.html +1 -1
- package/docs/variables/_saltcorn_admin-models..backup.create_csv_from_rows.html +1 -1
- package/docs/variables/_saltcorn_admin-models..backup.restore.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.add_to_menu.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.can_install_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.fetch_available_packs.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.fetch_pack_by_name.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.install_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.library_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.model_instance_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.model_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.page_group_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.page_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.plugin_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.role_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.table_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.trigger_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.uninstall_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..pack.view_pack.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.copy_tenant_template.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.create_tenant.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.deleteTenant.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.domain_sanitize.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.eachTenant.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.getAllTenantRows.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.getAllTenants.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.insertTenant.html +1 -1
- package/docs/variables/_saltcorn_admin-models..tenant.switchToTenant.html +1 -1
- package/docs/variables/_saltcorn_admin-models.models_backup.backup.html +1 -1
- package/docs/variables/_saltcorn_admin-models.pack.pack.html +3 -3
- package/docs/variables/_saltcorn_admin-models.tenant.tenant.html +1 -1
- package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedFive.html +1 -1
- package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedFour.html +1 -1
- package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedOne.html +1 -1
- package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedSix.html +1 -1
- package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedThree.html +1 -1
- package/docs/variables/_saltcorn_common-code.tests_expected_relations.expectedTwo.html +1 -1
- package/docs/variables/_saltcorn_data..migrations.html +1 -1
- package/docs/variables/_saltcorn_data..plugin_helper.run_action_column.html +1 -1
- package/docs/variables/_saltcorn_data..utils.NotAuthorized.html +1 -1
- package/docs/variables/_saltcorn_data..utils.isPushEnabled.html +1 -1
- package/docs/variables/_saltcorn_data..utils.sleep.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_actions.actions.html +13 -13
- package/docs/variables/_saltcorn_data.base-plugin_fieldviews.fieldviews.html +3 -3
- package/docs/variables/_saltcorn_data.base-plugin_fileview.fileviews.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_index.index.html +15 -15
- package/docs/variables/_saltcorn_data.base-plugin_types.types.html +7 -7
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_edit.edit.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_feed.feed.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_filter.filter.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_list.list.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_listshowlist.listshowlist.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_room.room-1.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_room.room.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_show.show.html +1 -1
- package/docs/variables/_saltcorn_data.base-plugin_viewtemplates_viewable_fields.edit_build_in_actions.html +1 -1
- package/docs/variables/_saltcorn_data.contract.contract.html +1 -1
- package/docs/variables/_saltcorn_data.db_connect.connect.html +1 -1
- package/docs/variables/_saltcorn_data.db_fa5-icons.fa5Icons.html +1 -1
- package/docs/variables/_saltcorn_data.db_fixtures.fixtures.html +1 -1
- package/docs/variables/_saltcorn_data.db_index.dbExports.html +1 -1
- package/docs/variables/_saltcorn_data.db_state.state.html +3 -3
- package/docs/variables/_saltcorn_data.migrations_202005141503.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202005241712.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202005251037.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202005282134.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202006022156.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202006051507.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202006240906.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202007091707.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202007202144.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202008031500.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202008051415.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202008121149.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202008121149.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202009112140.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202009112140.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202009181655.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202009221105.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202009231331.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202009301531.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202010231444.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202010251412.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202011021749.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202011051353.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202011111127.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202012011203.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202012100841.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202012281835.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202101061051.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202101141128.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202102091312.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202102101624.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202102172148.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202102261650.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106102347.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106112120.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106120012.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106120220.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106121701.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106121703.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106121703.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202106251126.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202107281619.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202107302158.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202107302158.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202108022257.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202109201624.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202109301031.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202109301031.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202111290253.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202111290253.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202112282254.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202112282254.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202207022002.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202207252150.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202207252150.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202207261221.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202208101144.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202208101144.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202211040031.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202212112152.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202212112152.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202301130917.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202303201126.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202303201126.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202303221944.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202303221944.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202304281224.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202305031518.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202305031518.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202308211648.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202311011755.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202311011755.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202311231356.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202402071125.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202406260915.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202412051957.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202412051957.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202412111526.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202412111526.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202501081226.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202501081226.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202501201239.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202501262157.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202503071353.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202506050958.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202510110312.sql_pg.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202510110312.sql_sqlite.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202511081024.sql.html +1 -1
- package/docs/variables/_saltcorn_data.migrations_202604091531.sql.html +1 -0
- package/docs/variables/_saltcorn_data.mobile-mocks_npm_npm-registry-fetch.npmRegistryFetch.html +1 -0
- package/docs/variables/_saltcorn_data.mobile-mocks_saltcorn_html-pdf-node.htmlPdfNode.html +1 -1
- package/docs/variables/_saltcorn_data.models_config.configExports.html +1 -1
- package/docs/variables/_saltcorn_data.models_discovery.discovery.html +6 -2
- package/docs/variables/_saltcorn_data.models_email.email.html +3 -3
- package/docs/variables/_saltcorn_data.models_expression.expression.html +3 -3
- package/docs/variables/_saltcorn_data.models_index.config.available_languages.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.check_email_mask.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.configTypes.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.deleteConfig.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.getAllConfig.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.getConfig.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.get_base_url.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.get_latest_npm_version.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.remove_from_menu.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.save_menu_items.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.config.setConfig.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.discovery.discover_tables.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.discovery.discoverable_tables.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.discovery.findType.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.discovery.get_existing_views.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.discovery.implement_discovery.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.discovery.make_field.html +1 -0
- package/docs/variables/_saltcorn_data.models_index.discovery.reconcile_table.html +7 -0
- package/docs/variables/_saltcorn_data.models_index.email.getMailTransport.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.email.send_verification_email.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.email.viewToEmailHtml.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.apply_calculated_fields.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.apply_calculated_fields_stored.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.eval_expression.html +9 -1
- package/docs/variables/_saltcorn_data.models_index.expression.expressionValidator.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.get_async_expression_function.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.get_expression_function.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.jsexprToWhere.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.recalculate_for_stored.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.expression.transform_for_async.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.layout.eachView.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.layout.getStringsForI18n.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.layout.getViews.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.layout.translateLayout.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.layout.traverse.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.layout.traverseSync.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.random.all_views.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.random.fill_table_row.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.random.initial_view.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.random.random_table.html +1 -1
- package/docs/variables/_saltcorn_data.models_index.scheduler.runScheduler.html +1 -1
- package/docs/variables/_saltcorn_data.models_layout.layout.html +1 -1
- package/docs/variables/_saltcorn_data.models_random.random.html +1 -1
- package/docs/variables/_saltcorn_data.models_scheduler.scheduler.html +1 -1
- package/docs/variables/_saltcorn_data.plugin-helper.add_free_variables_to_joinfields.html +1 -1
- package/docs/variables/_saltcorn_data.tests_mocks.mocks.html +1 -1
- package/docs/variables/_saltcorn_data.tests_remote_query_helper.renderEditInEditConfig.html +1 -1
- package/docs/variables/_saltcorn_data.utils.utils.html +11 -5
- package/docs/variables/_saltcorn_data.web-mobile-commons.webMobileCommons.html +1 -1
- package/docs/variables/_saltcorn_db-common.internal.dbCommonModulePath.html +1 -1
- package/docs/variables/_saltcorn_db-common.multi-tenant.tenantNamespace.html +1 -1
- package/docs/variables/_saltcorn_db-common.tenants.tenants.html +1 -1
- package/docs/variables/_saltcorn_markup..export_.html +1 -1
- package/docs/variables/_saltcorn_markup.builder.builder.html +1 -1
- package/docs/variables/_saltcorn_markup.emergency_layout.EmergencyLayoutExports.html +1 -1
- package/docs/variables/_saltcorn_markup.form.form.html +1 -1
- package/docs/variables/_saltcorn_markup.helpers.HelpersExports.html +1 -1
- package/docs/variables/_saltcorn_markup.layout.LayoutExports-1.html +1 -1
- package/docs/variables/_saltcorn_markup.layout.LayoutExports.html +1 -1
- package/docs/variables/_saltcorn_markup.layout_utils.layoutUtils.html +1 -1
- package/docs/variables/_saltcorn_markup.mjml-layout.LayoutExports.html +1 -1
- package/docs/variables/_saltcorn_markup.mjml-tags.tagsExports.html +1 -1
- package/docs/variables/_saltcorn_markup.table.TableExports.html +1 -1
- package/docs/variables/_saltcorn_markup.tags.tagsExports.html +1 -1
- package/docs/variables/_saltcorn_types..generators.generateBool.html +1 -1
- package/docs/variables/_saltcorn_types..generators.generateString.html +1 -1
- package/docs/variables/_saltcorn_types..generators.num_between.html +1 -1
- package/docs/variables/_saltcorn_types..generators.oneOf.html +1 -1
- package/docs/variables/_saltcorn_types.generators.generators.html +1 -1
- package/errors.js +4 -4
- package/help/Event channel and payload.tmd +5 -0
- package/help/Extra state formula.tmd +1 -1
- package/help/Group by formula.tmd +15 -0
- package/help/JavaScript action code.tmd +5 -1
- package/load_plugins.js +7 -398
- package/locales/ar.json +262 -1
- package/locales/de.json +264 -3
- package/locales/en.json +38 -9
- package/locales/es.json +265 -4
- package/locales/fr.json +263 -2
- package/locales/ur.json +273 -4
- package/markup/admin.js +14 -9
- package/markup/expression_blurb.js +1 -1
- package/package.json +14 -14
- package/public/monaco/loader.js +0 -2
- package/public/popper.min.js +0 -1
- package/public/saltcorn-builder.css +82 -0
- package/public/saltcorn-common.js +36 -2
- package/public/saltcorn.css +138 -0
- package/public/saltcorn.js +1458 -29
- package/public/socket.io.min.js +0 -1
- package/public/tabulator.min.js +2 -3
- package/public/tabulator_bootstrap4.min.css +1 -2
- package/public/tabulator_bootstrap5.min.css +1 -2
- package/routes/actions.js +275 -22
- package/routes/admin.js +148 -40
- package/routes/api.js +96 -60
- package/routes/delete.js +2 -5
- package/routes/edit.js +2 -5
- package/routes/entities.js +65 -1245
- package/routes/eventlog.js +47 -0
- package/routes/fields.js +125 -14
- package/routes/files.js +36 -4
- package/routes/homepage.js +4 -1
- package/routes/list.js +69 -11
- package/routes/packs.js +2 -3
- package/routes/page.js +18 -1
- package/routes/pageedit.js +1 -0
- package/routes/plugins.js +56 -21
- package/routes/scapi.js +1 -2
- package/routes/sync.js +183 -54
- package/routes/tables.js +492 -2
- package/routes/tenant.js +3 -3
- package/routes/utils.js +17 -6
- package/routes/viewedit.js +10 -6
- package/serve.js +35 -23
- package/tests/admin.test.js +5 -5
- package/tests/api.test.js +424 -2
- package/tests/auth.test.js +230 -1
- package/tests/fields.test.js +16 -0
- package/tests/files.test.js +43 -7
- package/tests/page.test.js +53 -0
- package/tests/plugin_install.test.js +132 -13
- package/tests/plugins.test.js +1 -2
- package/tests/sync.test.js +900 -18
- package/tests/view.test.js +32 -0
- package/wrapper.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,49 @@
|
|
|
2
2
|
|
|
3
3
|
## 1.6.0 - In development
|
|
4
4
|
|
|
5
|
-
*
|
|
5
|
+
* Admin tabulator now automatically stretches to bottom of the screen
|
|
6
|
+
|
|
7
|
+
* Rescan fields in table settings to resync Saltcorn representation with on-disk format.
|
|
8
|
+
|
|
9
|
+
* Detailed contents shown in module store where available
|
|
10
|
+
|
|
11
|
+
* run_js_code action run on the client page now execute directly without a server detour.
|
|
12
|
+
|
|
13
|
+
* Button to create standard fields (name, description, created at/by, updated at/by) in tables
|
|
14
|
+
|
|
15
|
+
* Default field values can now be given by an expression. This makes it easier to make created at/by fields
|
|
16
|
+
|
|
17
|
+
* String fields with options are now translated.
|
|
18
|
+
|
|
19
|
+
* Entities list shows most recently edited entities
|
|
20
|
+
|
|
21
|
+
* `old_row` can now be accessed in Update trigger only if.. formula
|
|
22
|
+
|
|
23
|
+
* If List column show if true formula does not access fields (e.g. based only on `user`) the whole column is now shown or hidden.
|
|
24
|
+
|
|
25
|
+
* User roles below admin can now be given permission to edit users with the same user interface as that used by admin (at /useradmin URLs).
|
|
26
|
+
|
|
27
|
+
* If the copilot is installed, it can now help write or change run_js_code scripts ("Edit with AI" button)
|
|
28
|
+
|
|
29
|
+
* In the `relative` fieldview for date fields, the full time is shown when on hover (using the title attribute)
|
|
30
|
+
|
|
31
|
+
* Typescript types are now stripped from run_js_code actions and code pages (if on Node.js 22.13.0 or later)
|
|
32
|
+
|
|
33
|
+
* If logged in as admin, a popover now appears on hovering over any embedded view with a link to configure
|
|
34
|
+
|
|
35
|
+
* Click-to-edit on dates will use flatpickr if it is installed as a module
|
|
36
|
+
|
|
37
|
+
* Stored calculated fields are now calculated on field creation
|
|
38
|
+
|
|
39
|
+
* Many identifiers or entity names now appear with an icon to copy to clipboard on hover. This is also avaliable as an option on the as_text fieldview for String fields.
|
|
40
|
+
|
|
41
|
+
* `assert` is now available in run_js_code actions. This is the strict version from Node's assert module.
|
|
42
|
+
|
|
43
|
+
* Module reload and cache purge on SIGHUP
|
|
44
|
+
|
|
45
|
+
* Default Edit forms are now more responsive: two column on desktop, one-column on mobile, with responsive label alignment
|
|
46
|
+
|
|
47
|
+
* The Startup event is now run on backup restore.
|
|
6
48
|
|
|
7
49
|
* List views now have a "Tree Field" option, for self-join keys, to show the rows as a tree as an indented indicator in the first column. If a tree field is chosen, sorting by joinfields and aggregations is disabled.
|
|
8
50
|
|
|
@@ -10,13 +52,28 @@
|
|
|
10
52
|
|
|
11
53
|
* Keyboard shortcuts can be defined for menu items
|
|
12
54
|
|
|
13
|
-
*
|
|
55
|
+
* Builder updates:
|
|
56
|
+
* Based on craft.js 0.2.12
|
|
57
|
+
* Drag-and-drop is much improved, both in the canvas and in the layers
|
|
58
|
+
* Layers visual update, buttons for movement
|
|
59
|
+
* If the copilot is installed, elements can be generated or altered with LLMs
|
|
60
|
+
* The builder now works on touch devices, for example tablets
|
|
61
|
+
* Code expand popout for code inputs
|
|
62
|
+
* Device selector with mobile and tablet preview. Some settings can be set per-device.
|
|
63
|
+
* Individual columns are can now be moved and deleted.
|
|
64
|
+
* Elements can now be added to the top right (left in RTL languages) of cards, if a title is given.
|
|
65
|
+
|
|
14
66
|
|
|
15
67
|
* The `res` is now available in actions, allowing you to, for instance, set cookies
|
|
16
68
|
|
|
17
69
|
* Set additional workflow context in the builder when a workflow action is selected
|
|
18
70
|
|
|
19
|
-
* Entities list:
|
|
71
|
+
* Entities list:
|
|
72
|
+
* search modules and users
|
|
73
|
+
* multiselect with delete
|
|
74
|
+
* pack download and role change
|
|
75
|
+
* deep search option
|
|
76
|
+
* keyboard shortcuts
|
|
20
77
|
|
|
21
78
|
* Instances run in multi-node mode will now automatically select a leader to run the schedule
|
|
22
79
|
|
|
@@ -37,6 +94,18 @@
|
|
|
37
94
|
|
|
38
95
|
* Reduce the number of network requests in Edit forms with complex logic
|
|
39
96
|
|
|
97
|
+
### Security
|
|
98
|
+
|
|
99
|
+
* Protection against SQL injection in the jsexprToSQL function. To our knowledge this can only be accessed by users with administrative privileges.
|
|
100
|
+
|
|
101
|
+
* Tenants can only be created on subtenants if the role to create tenants is public. This avoids a confusing situation where the role check was not against root roles but against the subtenant roles when the tenant was created from a subtenants.
|
|
102
|
+
|
|
103
|
+
* Prevent tenants from installing git/github plugins from backups and packs
|
|
104
|
+
|
|
105
|
+
* Ownership checks in table sync with mobile apps
|
|
106
|
+
|
|
107
|
+
* Cookie "secure" property set if using https or if the "force secure" option is chosen
|
|
108
|
+
|
|
40
109
|
## 1.5.0 - Released 26 January 2026
|
|
41
110
|
|
|
42
111
|
* thumbs_up_down fieldview for booleans fields, as an alternative to tristate
|
package/app.js
CHANGED
|
@@ -19,7 +19,7 @@ const BearerStrategy = require("passport-http-bearer");
|
|
|
19
19
|
const User = require("@saltcorn/data/models/user");
|
|
20
20
|
const File = require("@saltcorn/data/models/file");
|
|
21
21
|
const flash = require("connect-flash");
|
|
22
|
-
const
|
|
22
|
+
const Plugin = require("@saltcorn/data/models/plugin");
|
|
23
23
|
const homepage = require("./routes/homepage");
|
|
24
24
|
const errors = require("./errors");
|
|
25
25
|
const {
|
|
@@ -67,6 +67,7 @@ const jwtOpts = {
|
|
|
67
67
|
secretOrKey: jwt_secret,
|
|
68
68
|
issuer: "saltcorn@saltcorn",
|
|
69
69
|
audience: "saltcorn-mobile-app",
|
|
70
|
+
passReqToCallback: true,
|
|
70
71
|
};
|
|
71
72
|
|
|
72
73
|
const disabledCsurf = (req, res, next) => {
|
|
@@ -102,7 +103,7 @@ const getApp = async (opts = {}) => {
|
|
|
102
103
|
// switch on sql logging
|
|
103
104
|
if (sql_log) db.set_sql_logging(); // dont override cli flag
|
|
104
105
|
// load all plugins
|
|
105
|
-
await loadAllPlugins();
|
|
106
|
+
await Plugin.loadAllPlugins();
|
|
106
107
|
// get development mode status
|
|
107
108
|
const development_mode = getState().getConfig("development_mode", false);
|
|
108
109
|
// switch on sql logging - but it was initiated before???
|
|
@@ -118,6 +119,8 @@ const getApp = async (opts = {}) => {
|
|
|
118
119
|
false
|
|
119
120
|
);
|
|
120
121
|
app.set("query parser", "extended");
|
|
122
|
+
if (getState().getConfig("force_secure_cookies", false))
|
|
123
|
+
app.set("trust proxy", 1);
|
|
121
124
|
|
|
122
125
|
const helmetOptions = {
|
|
123
126
|
contentSecurityPolicy: {
|
|
@@ -214,7 +217,11 @@ const getApp = async (opts = {}) => {
|
|
|
214
217
|
// init multitenant mode
|
|
215
218
|
if (db.is_it_multi_tenant()) {
|
|
216
219
|
const tenants = await getAllTenants();
|
|
217
|
-
await init_multi_tenant(
|
|
220
|
+
await init_multi_tenant(
|
|
221
|
+
Plugin.loadAllPlugins,
|
|
222
|
+
opts.disableMigrate,
|
|
223
|
+
tenants
|
|
224
|
+
);
|
|
218
225
|
}
|
|
219
226
|
const pruneSessionInterval = +getState().getConfig(
|
|
220
227
|
"prune_session_interval",
|
|
@@ -230,10 +237,14 @@ const getApp = async (opts = {}) => {
|
|
|
230
237
|
app.use((req, res, next) => {
|
|
231
238
|
// no jwt and session id at the same time
|
|
232
239
|
if (
|
|
233
|
-
!(
|
|
240
|
+
!(req.jwtAuthenticated && req.cookies && req.cookies["connect.sid"]) ||
|
|
234
241
|
isPlaywright
|
|
235
242
|
)
|
|
236
243
|
next();
|
|
244
|
+
else
|
|
245
|
+
res.status(400).json({
|
|
246
|
+
error: "Cannot authenticate with both JWT and session cookie",
|
|
247
|
+
});
|
|
237
248
|
});
|
|
238
249
|
app.use(flash());
|
|
239
250
|
|
|
@@ -338,7 +349,7 @@ const getApp = async (opts = {}) => {
|
|
|
338
349
|
const mu =
|
|
339
350
|
(await User.findByApiToken(token)) ||
|
|
340
351
|
(await User.findOne({ api_token: token }));
|
|
341
|
-
if (mu && token && token.length > 5)
|
|
352
|
+
if (mu && !mu.disabled && token && token.length > 5)
|
|
342
353
|
return done(
|
|
343
354
|
null,
|
|
344
355
|
{
|
|
@@ -357,19 +368,26 @@ const getApp = async (opts = {}) => {
|
|
|
357
368
|
})
|
|
358
369
|
);
|
|
359
370
|
passport.use(
|
|
360
|
-
new JwtStrategy(jwtOpts, async (jwt_payload, done) => {
|
|
371
|
+
new JwtStrategy(jwtOpts, async (req, jwt_payload, done) => {
|
|
361
372
|
const userCheck = async () => {
|
|
373
|
+
if (jwt_payload.sub === "public") {
|
|
374
|
+
req.jwtAuthenticated = true;
|
|
375
|
+
return done(null, { role_id: 100 });
|
|
376
|
+
}
|
|
362
377
|
const u = await User.findOne({ email: jwt_payload.sub });
|
|
363
378
|
if (
|
|
364
379
|
u &&
|
|
380
|
+
!u.disabled &&
|
|
381
|
+
!u._attributes?.totp_enabled &&
|
|
365
382
|
u.last_mobile_login &&
|
|
366
383
|
(typeof u.last_mobile_login === "string"
|
|
367
384
|
? new Date(u.last_mobile_login).valueOf()
|
|
368
385
|
: u.last_mobile_login) <= jwt_payload.iat
|
|
369
386
|
) {
|
|
387
|
+
req.jwtAuthenticated = true;
|
|
370
388
|
return done(null, u.session_object);
|
|
371
389
|
} else {
|
|
372
|
-
return done(null,
|
|
390
|
+
return done(null, false);
|
|
373
391
|
}
|
|
374
392
|
};
|
|
375
393
|
if (
|
|
@@ -415,9 +433,6 @@ const getApp = async (opts = {}) => {
|
|
|
415
433
|
|
|
416
434
|
app.use(wrapper(version_tag));
|
|
417
435
|
|
|
418
|
-
app.use("/api", api);
|
|
419
|
-
app.use("/scapi", scapi);
|
|
420
|
-
|
|
421
436
|
const pluginRoutesHandler = new PluginRoutesHandler();
|
|
422
437
|
await eachTenant(async () => {
|
|
423
438
|
pluginRoutesHandler.initTenantRouter(
|
|
@@ -446,16 +461,21 @@ const getApp = async (opts = {}) => {
|
|
|
446
461
|
(req.url.startsWith("/api/") ||
|
|
447
462
|
req.url === "/auth/login-with/jwt" ||
|
|
448
463
|
req.url === "/auth/signup")) ||
|
|
449
|
-
|
|
464
|
+
req.jwtAuthenticated ||
|
|
465
|
+
req.headers.authorization?.toLowerCase().startsWith("bearer ") ||
|
|
450
466
|
req.url === "/auth/callback/saml" ||
|
|
451
467
|
req.url.startsWith("/notifications/share-handler") ||
|
|
452
|
-
req.url.startsWith("/notifications/manifest")
|
|
468
|
+
req.url.startsWith("/notifications/manifest") ||
|
|
469
|
+
(req.url.startsWith("/api/") && !req.cookies?.["connect.sid"])
|
|
453
470
|
)
|
|
454
471
|
return disabledCsurf(req, res, next);
|
|
455
472
|
csurf(req, res, next);
|
|
456
473
|
});
|
|
457
474
|
} else app.use(disabledCsurf);
|
|
458
475
|
|
|
476
|
+
app.use("/api", api);
|
|
477
|
+
app.use("/scapi", scapi);
|
|
478
|
+
|
|
459
479
|
mountRoutes(app);
|
|
460
480
|
// set tenant homepage as / root
|
|
461
481
|
app.get("/", error_catcher(homepage));
|
package/auth/admin.js
CHANGED
|
@@ -26,6 +26,7 @@ const {
|
|
|
26
26
|
error_catcher,
|
|
27
27
|
addOnDoneRedirect,
|
|
28
28
|
is_relative_url,
|
|
29
|
+
isAdminOrHasConfigMinRole,
|
|
29
30
|
} = require("../routes/utils");
|
|
30
31
|
const { send_reset_email } = require("./resetpw");
|
|
31
32
|
const { getState } = require("@saltcorn/data/db/state");
|
|
@@ -136,7 +137,9 @@ const userForm = async (req, user) => {
|
|
|
136
137
|
type: "Key",
|
|
137
138
|
reftable_name: "roles",
|
|
138
139
|
});
|
|
139
|
-
const roles = (await User.get_roles()).filter(
|
|
140
|
+
const roles = (await User.get_roles()).filter(
|
|
141
|
+
(r) => r.role !== "public" && r.id >= req.user.role_id
|
|
142
|
+
);
|
|
140
143
|
roleField.options = roles.map((r) => ({ label: r.role, value: r.id }));
|
|
141
144
|
const can_reset = getState().getConfig("smtp_host", "") !== "";
|
|
142
145
|
const userFields = (await getUserFields(req)).filter(
|
|
@@ -201,11 +204,15 @@ const user_dropdown = (user, req, can_reset) =>
|
|
|
201
204
|
},
|
|
202
205
|
'<i class="fas fa-edit"></i> ' + req.__("Edit")
|
|
203
206
|
),
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
...(req.user.role_id === 1
|
|
208
|
+
? [
|
|
209
|
+
post_dropdown_item(
|
|
210
|
+
`/useradmin/become-user/${user.id}`,
|
|
211
|
+
'<i class="fas fa-ghost"></i> ' + req.__("Become user"),
|
|
212
|
+
req
|
|
213
|
+
),
|
|
214
|
+
]
|
|
215
|
+
: []),
|
|
209
216
|
post_dropdown_item(
|
|
210
217
|
`/useradmin/set-random-password/${user.id}`,
|
|
211
218
|
'<i class="fas fa-random"></i> ' + req.__("Set random password"),
|
|
@@ -264,7 +271,7 @@ const user_dropdown = (user, req, can_reset) =>
|
|
|
264
271
|
*/
|
|
265
272
|
router.get(
|
|
266
273
|
"/",
|
|
267
|
-
|
|
274
|
+
isAdminOrHasConfigMinRole("min_role_edit_users"),
|
|
268
275
|
error_catcher(async (req, res) => {
|
|
269
276
|
const auth_methods = getState().auth_methods;
|
|
270
277
|
const userBadges = (user) =>
|
|
@@ -282,7 +289,10 @@ router.get(
|
|
|
282
289
|
span({ class: "badge bg-secondary me-1" }, v.label || k)
|
|
283
290
|
)
|
|
284
291
|
);
|
|
285
|
-
const users = await User.find(
|
|
292
|
+
const users = await User.find(
|
|
293
|
+
{ role_id: { gt: req.user.role_id, equal: true } },
|
|
294
|
+
{ orderBy: "id" }
|
|
295
|
+
);
|
|
286
296
|
const roles = await User.get_roles();
|
|
287
297
|
let roleMap = {};
|
|
288
298
|
roles.forEach((r) => {
|
|
@@ -344,7 +354,8 @@ router.get(
|
|
|
344
354
|
*/
|
|
345
355
|
router.get(
|
|
346
356
|
"/new",
|
|
347
|
-
|
|
357
|
+
isAdminOrHasConfigMinRole("min_role_edit_users"),
|
|
358
|
+
|
|
348
359
|
error_catcher(async (req, res) => {
|
|
349
360
|
const form = await userForm(req);
|
|
350
361
|
send_users_page({
|
|
@@ -415,6 +426,7 @@ const http_settings_form = async (req) =>
|
|
|
415
426
|
"cookie_duration",
|
|
416
427
|
"cookie_duration_remember",
|
|
417
428
|
"cookie_samesite",
|
|
429
|
+
"force_secure_cookies",
|
|
418
430
|
"content_security_policy",
|
|
419
431
|
"cors_enabled",
|
|
420
432
|
"public_cache_maxage",
|
|
@@ -459,6 +471,7 @@ const permissions_settings_form = async (req) =>
|
|
|
459
471
|
"min_role_edit_files",
|
|
460
472
|
"min_role_edit_search",
|
|
461
473
|
"min_role_create_snapshots",
|
|
474
|
+
"min_role_edit_users",
|
|
462
475
|
//hidden "exttables_min_role_read",
|
|
463
476
|
],
|
|
464
477
|
action: "/useradmin/permissions",
|
|
@@ -967,10 +980,16 @@ router.get(
|
|
|
967
980
|
*/
|
|
968
981
|
router.get(
|
|
969
982
|
"/:id",
|
|
970
|
-
|
|
983
|
+
isAdminOrHasConfigMinRole("min_role_edit_users"),
|
|
984
|
+
|
|
971
985
|
error_catcher(async (req, res) => {
|
|
972
986
|
const { id } = req.params;
|
|
973
987
|
const user = await User.findOne({ id });
|
|
988
|
+
if (user.role_id < req.user.role_id) {
|
|
989
|
+
req.flash("error", req.__(`Not authorized`));
|
|
990
|
+
res.redirect("/useradmin");
|
|
991
|
+
return;
|
|
992
|
+
}
|
|
974
993
|
const form = await userForm(req, user);
|
|
975
994
|
|
|
976
995
|
send_users_page({
|
|
@@ -1117,7 +1136,8 @@ router.get(
|
|
|
1117
1136
|
*/
|
|
1118
1137
|
router.post(
|
|
1119
1138
|
"/save",
|
|
1120
|
-
|
|
1139
|
+
isAdminOrHasConfigMinRole("min_role_edit_users"),
|
|
1140
|
+
|
|
1121
1141
|
error_catcher(async (req, res) => {
|
|
1122
1142
|
let form, sub2;
|
|
1123
1143
|
if ((req.body || {}).id) {
|
|
@@ -1153,6 +1173,11 @@ router.post(
|
|
|
1153
1173
|
_csrf,
|
|
1154
1174
|
...rest
|
|
1155
1175
|
} = form.values;
|
|
1176
|
+
if (role_id < req.user.role_id) {
|
|
1177
|
+
req.flash("error", req.__(`Not authorized`));
|
|
1178
|
+
res.redirect("/useradmin");
|
|
1179
|
+
return;
|
|
1180
|
+
}
|
|
1156
1181
|
if (id) {
|
|
1157
1182
|
try {
|
|
1158
1183
|
const u = await User.findOne({ id });
|
|
@@ -1201,10 +1226,16 @@ router.post(
|
|
|
1201
1226
|
*/
|
|
1202
1227
|
router.post(
|
|
1203
1228
|
"/reset-password/:id",
|
|
1204
|
-
|
|
1229
|
+
isAdminOrHasConfigMinRole("min_role_edit_users"),
|
|
1230
|
+
|
|
1205
1231
|
error_catcher(async (req, res) => {
|
|
1206
1232
|
const { id } = req.params;
|
|
1207
1233
|
const u = await User.findOne({ id });
|
|
1234
|
+
if (u.role_id < req.user.role_id) {
|
|
1235
|
+
req.flash("error", req.__(`Not authorized`));
|
|
1236
|
+
res.redirect("/useradmin");
|
|
1237
|
+
return;
|
|
1238
|
+
}
|
|
1208
1239
|
await send_reset_email(u, req, { from_admin: true });
|
|
1209
1240
|
req.flash("success", req.__(`Reset password link sent to %s`, u.email));
|
|
1210
1241
|
|
|
@@ -1220,11 +1251,17 @@ router.post(
|
|
|
1220
1251
|
*/
|
|
1221
1252
|
router.post(
|
|
1222
1253
|
"/send-verification/:id",
|
|
1223
|
-
|
|
1254
|
+
isAdminOrHasConfigMinRole("min_role_edit_users"),
|
|
1255
|
+
|
|
1224
1256
|
error_catcher(async (req, res) => {
|
|
1225
1257
|
const { id } = req.params;
|
|
1226
1258
|
const u = await User.findOne({ id });
|
|
1227
1259
|
// todo add test case
|
|
1260
|
+
if (u.role_id < req.user.role_id) {
|
|
1261
|
+
req.flash("error", req.__(`Not authorized`));
|
|
1262
|
+
res.redirect("/useradmin");
|
|
1263
|
+
return;
|
|
1264
|
+
}
|
|
1228
1265
|
const result = await send_verification_email(u, req);
|
|
1229
1266
|
if (result.error)
|
|
1230
1267
|
req.flash(
|
|
@@ -1249,10 +1286,16 @@ router.post(
|
|
|
1249
1286
|
*/
|
|
1250
1287
|
router.post(
|
|
1251
1288
|
"/gen-api-token/:id",
|
|
1252
|
-
|
|
1289
|
+
isAdminOrHasConfigMinRole("min_role_edit_users"),
|
|
1290
|
+
|
|
1253
1291
|
error_catcher(async (req, res) => {
|
|
1254
1292
|
const { id } = req.params;
|
|
1255
1293
|
const u = await User.findOne({ id });
|
|
1294
|
+
if (u.role_id < req.user.role_id) {
|
|
1295
|
+
req.flash("error", req.__(`Not authorized`));
|
|
1296
|
+
res.redirect("/useradmin");
|
|
1297
|
+
return;
|
|
1298
|
+
}
|
|
1256
1299
|
await u.getNewAPIToken();
|
|
1257
1300
|
req.flash("success", req.__(`New API token generated`));
|
|
1258
1301
|
|
|
@@ -1268,10 +1311,16 @@ router.post(
|
|
|
1268
1311
|
*/
|
|
1269
1312
|
router.post(
|
|
1270
1313
|
"/remove-api-token/:id",
|
|
1271
|
-
|
|
1314
|
+
isAdminOrHasConfigMinRole("min_role_edit_users"),
|
|
1315
|
+
|
|
1272
1316
|
error_catcher(async (req, res) => {
|
|
1273
1317
|
const { id } = req.params;
|
|
1274
1318
|
const u = await User.findOne({ id });
|
|
1319
|
+
if (u.role_id < req.user.role_id) {
|
|
1320
|
+
req.flash("error", req.__(`Not authorized`));
|
|
1321
|
+
res.redirect("/useradmin");
|
|
1322
|
+
return;
|
|
1323
|
+
}
|
|
1275
1324
|
await u.removeAPIToken();
|
|
1276
1325
|
req.flash("success", req.__(`API token removed`));
|
|
1277
1326
|
|
|
@@ -1287,10 +1336,16 @@ router.post(
|
|
|
1287
1336
|
*/
|
|
1288
1337
|
router.post(
|
|
1289
1338
|
"/revoke-api-token/:uid/:tokenId",
|
|
1290
|
-
|
|
1339
|
+
isAdminOrHasConfigMinRole("min_role_edit_users"),
|
|
1340
|
+
|
|
1291
1341
|
error_catcher(async (req, res) => {
|
|
1292
1342
|
const { uid, tokenId } = req.params;
|
|
1293
1343
|
const u = await User.findOne({ id: uid });
|
|
1344
|
+
if (u.role_id < req.user.role_id) {
|
|
1345
|
+
req.flash("error", req.__(`Not authorized`));
|
|
1346
|
+
res.redirect("/useradmin");
|
|
1347
|
+
return;
|
|
1348
|
+
}
|
|
1294
1349
|
await u.revokeApiToken(+tokenId);
|
|
1295
1350
|
req.flash("success", req.__(`API token revoked`));
|
|
1296
1351
|
res.redirect(getOnDoneRedirect(req, `/useradmin/${u.id}`));
|
|
@@ -1302,10 +1357,16 @@ router.post(
|
|
|
1302
1357
|
*/
|
|
1303
1358
|
router.post(
|
|
1304
1359
|
"/revoke-original-api-token/:uid",
|
|
1305
|
-
|
|
1360
|
+
isAdminOrHasConfigMinRole("min_role_edit_users"),
|
|
1361
|
+
|
|
1306
1362
|
error_catcher(async (req, res) => {
|
|
1307
1363
|
const { uid } = req.params;
|
|
1308
1364
|
const u = await User.findOne({ id: uid });
|
|
1365
|
+
if (u.role_id < req.user.role_id) {
|
|
1366
|
+
req.flash("error", req.__(`Not authorized`));
|
|
1367
|
+
res.redirect("/useradmin");
|
|
1368
|
+
return;
|
|
1369
|
+
}
|
|
1309
1370
|
await u.revokeOriginalApiToken();
|
|
1310
1371
|
req.flash("success", req.__(`API token revoked`));
|
|
1311
1372
|
res.redirect(getOnDoneRedirect(req, `/useradmin/${u.id}`));
|
|
@@ -1320,10 +1381,16 @@ router.post(
|
|
|
1320
1381
|
*/
|
|
1321
1382
|
router.post(
|
|
1322
1383
|
"/set-random-password/:id",
|
|
1323
|
-
|
|
1384
|
+
isAdminOrHasConfigMinRole("min_role_edit_users"),
|
|
1385
|
+
|
|
1324
1386
|
error_catcher(async (req, res) => {
|
|
1325
1387
|
const { id } = req.params;
|
|
1326
1388
|
const u = await User.findOne({ id });
|
|
1389
|
+
if (u.role_id < req.user.role_id) {
|
|
1390
|
+
req.flash("error", req.__(`Not authorized`));
|
|
1391
|
+
res.redirect("/useradmin");
|
|
1392
|
+
return;
|
|
1393
|
+
}
|
|
1327
1394
|
const newpw = User.generate_password();
|
|
1328
1395
|
await u.changePasswordTo(newpw);
|
|
1329
1396
|
await u.destroy_sessions();
|
|
@@ -1372,10 +1439,15 @@ router.post(
|
|
|
1372
1439
|
*/
|
|
1373
1440
|
router.post(
|
|
1374
1441
|
"/disable/:id",
|
|
1375
|
-
|
|
1442
|
+
isAdminOrHasConfigMinRole("min_role_edit_users"),
|
|
1376
1443
|
error_catcher(async (req, res) => {
|
|
1377
1444
|
const { id } = req.params;
|
|
1378
1445
|
const u = await User.findOne({ id });
|
|
1446
|
+
if (u.role_id < req.user.role_id) {
|
|
1447
|
+
req.flash("error", req.__(`Not authorized`));
|
|
1448
|
+
res.redirect("/useradmin");
|
|
1449
|
+
return;
|
|
1450
|
+
}
|
|
1379
1451
|
await u.update({ disabled: true });
|
|
1380
1452
|
await u.destroy_sessions();
|
|
1381
1453
|
req.flash("success", req.__(`Disabled user %s`, u.email));
|
|
@@ -1390,10 +1462,15 @@ router.post(
|
|
|
1390
1462
|
*/
|
|
1391
1463
|
router.post(
|
|
1392
1464
|
"/force-logout/:id",
|
|
1393
|
-
|
|
1465
|
+
isAdminOrHasConfigMinRole("min_role_edit_users"),
|
|
1394
1466
|
error_catcher(async (req, res) => {
|
|
1395
1467
|
const { id } = req.params;
|
|
1396
1468
|
const u = await User.findOne({ id });
|
|
1469
|
+
if (u.role_id < req.user.role_id) {
|
|
1470
|
+
req.flash("error", req.__(`Not authorized`));
|
|
1471
|
+
res.redirect("/useradmin");
|
|
1472
|
+
return;
|
|
1473
|
+
}
|
|
1397
1474
|
await u.destroy_sessions();
|
|
1398
1475
|
req.flash("success", req.__(`Logged out user %s`, u.email));
|
|
1399
1476
|
res.redirect(getOnDoneRedirect(req));
|
|
@@ -1407,10 +1484,15 @@ router.post(
|
|
|
1407
1484
|
*/
|
|
1408
1485
|
router.post(
|
|
1409
1486
|
"/enable/:id",
|
|
1410
|
-
|
|
1487
|
+
isAdminOrHasConfigMinRole("min_role_edit_users"),
|
|
1411
1488
|
error_catcher(async (req, res) => {
|
|
1412
1489
|
const { id } = req.params;
|
|
1413
1490
|
const u = await User.findOne({ id });
|
|
1491
|
+
if (u.role_id < req.user.role_id) {
|
|
1492
|
+
req.flash("error", req.__(`Not authorized`));
|
|
1493
|
+
res.redirect("/useradmin");
|
|
1494
|
+
return;
|
|
1495
|
+
}
|
|
1414
1496
|
await u.update({ disabled: false });
|
|
1415
1497
|
req.flash("success", req.__(`Enabled user %s`, u.email));
|
|
1416
1498
|
res.redirect(getOnDoneRedirect(req));
|
|
@@ -1424,10 +1506,15 @@ router.post(
|
|
|
1424
1506
|
*/
|
|
1425
1507
|
router.post(
|
|
1426
1508
|
"/delete/:id",
|
|
1427
|
-
|
|
1509
|
+
isAdminOrHasConfigMinRole("min_role_edit_users"),
|
|
1428
1510
|
error_catcher(async (req, res) => {
|
|
1429
1511
|
const { id } = req.params;
|
|
1430
1512
|
const u = await User.findOne({ id });
|
|
1513
|
+
if (u.role_id < req.user.role_id) {
|
|
1514
|
+
req.flash("error", req.__(`Not authorized`));
|
|
1515
|
+
res.redirect("/useradmin");
|
|
1516
|
+
return;
|
|
1517
|
+
}
|
|
1431
1518
|
await u.delete();
|
|
1432
1519
|
req.flash("success", req.__(`User %s deleted`, u.email));
|
|
1433
1520
|
|