@forge/manifest

12.1.0-next.612.1.0-next.7
out/validators/remotes-is-configurable-validator.js
~out/validators/remotes-is-configurable-validator.jsModified
+7−36
Index: package/out/validators/remotes-is-configurable-validator.js
===================================================================
--- package/out/validators/remotes-is-configurable-validator.js
+++ package/out/validators/remotes-is-configurable-validator.js
@@ -37,46 +37,17 @@
             };
         }
         const remotes = manifest.typedContent.remotes;
         const validationErrors = [];
-        const configurableRemotesAllowed = manifest.typedContent.permissions?.configurable?.enabled ?? false;
         remotes?.forEach((remote) => {
-            if (!configurableRemotesAllowed) {
-                if (remote.configurable !== undefined) {
-                    validationErrors.push({
-                        message: text_1.errors.modules.remote.userConfigurationPermissionsMismatch(remote.key),
-                        reference: text_1.References.App,
-                        level: 'error',
-                        ...(0, utils_1.findPosition)(remote.key, manifest.yamlContentByLine)
-                    });
-                }
-                if (remote.configurable === undefined && remote.baseUrl === undefined) {
-                    validationErrors.push({
-                        message: text_1.errors.modules.remote.baseUrlNotPresent(remote.key),
-                        reference: text_1.References.App,
-                        level: 'error',
-                        ...(0, utils_1.findPosition)(remote.key, manifest.yamlContentByLine)
-                    });
-                }
+            if (remote.configurable === undefined && remote.baseUrl === undefined) {
+                validationErrors.push({
+                    message: text_1.errors.modules.remote.neitherBaseUrlNorUserConfigurationPresent(remote.key),
+                    reference: text_1.References.App,
+                    level: 'error',
+                    ...(0, utils_1.findPosition)(remote.key, manifest.yamlContentByLine)
+                });
             }
-            else {
-                if (remote.configurable === undefined && remote.baseUrl === undefined) {
-                    validationErrors.push({
-                        message: text_1.errors.modules.remote.neitherBaseUrlNorUserConfigurationPresent(remote.key),
-                        reference: text_1.References.App,
-                        level: 'error',
-                        ...(0, utils_1.findPosition)(remote.key, manifest.yamlContentByLine)
-                    });
-                }
-                else if (remote.configurable !== undefined && remote.baseUrl !== undefined) {
-                    validationErrors.push({
-                        message: text_1.errors.modules.remote.bothBaseUrlAndUserConfigurationPresent(remote.key),
-                        reference: text_1.References.App,
-                        level: 'error',
-                        ...(0, utils_1.findPosition)(remote.key, manifest.yamlContentByLine)
-                    });
-                }
-            }
         });
         return {
             success: validationErrors.length === 0,
             manifestObject: manifest,