2
0
Эх сурвалжийг харах

Merge pull request #431 from smiclea/remove-permissions

Remove permissions check from wizard
Dorin Paslaru 6 жил өмнө
parent
commit
0319342187

+ 0 - 22
src/components/pages/WizardPage/WizardPage.jsx

@@ -217,18 +217,6 @@ class WizardPage extends React.Component<Props, State> {
     wizardStore.clearStorageMap()
     wizardStore.setPermalink(wizardStore.data)
 
-    let getConnectionInfo = async () => {
-      if (!source) {
-        return
-      }
-      // Check if user has permission for this endpoint
-      try {
-        await endpointStore.getConnectionInfo(source)
-      } catch (err) {
-        this.handleSourceEndpointChange(null)
-      }
-    }
-    getConnectionInfo()
     if (!source) {
       return
     }
@@ -418,16 +406,6 @@ class WizardPage extends React.Component<Props, State> {
         }
         // Preload source options schema
         loadOptions(source, 'source')
-
-        if (instanceStore.instances.length > 0) {
-          return
-        }
-        try {
-          // Check if user has permission for this endpoint
-          await endpointStore.getConnectionInfo(source)
-        } catch (err) {
-          this.handleSourceEndpointChange(null)
-        }
         break
       }
       case 'vms': {