Skip to content

Commit

Permalink
Disable new tenants creation (#1133)
Browse files Browse the repository at this point in the history
  • Loading branch information
joanagmaia authored Jul 19, 2023
1 parent b0c3db9 commit 7a2f80e
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 444 deletions.
32 changes: 0 additions & 32 deletions frontend/src/middleware/auth/auth-guard.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ function isGoingToIntegrationsPage(to) {
*
* It uses the PermissionChecker to validate if:
* - User is authenticated, and both currentTenant & currentUser exist within our store (if not, redirects to /auth/signin)
* - Email of that user is verified (if not, redirects to /auth/email-unverified)
* - User is onboarded (if not, redirects to /onboard)
* - User has permissions (if not, redirects to /auth/empty-permissions)
*
* @param to
Expand All @@ -40,14 +38,6 @@ export default async function ({ to, store, router }) {
return;
}

// if (
// to.path !== '/auth/email-unverified'
// && !permissionChecker.isEmailVerified
// ) {
// router.push({ path: '/auth/signin' });
// return;
// }

// Temporary fix
if (
to.meta.permission
Expand All @@ -61,28 +51,6 @@ export default async function ({ to, store, router }) {
}

if (
['multi', 'multi-with-subdomain'].includes(
config.tenantMode,
)
&& !tenantSubdomain.isSubdomain
) {
if (
to.path !== '/onboard'
&& permissionChecker.isEmailVerified
&& (permissionChecker.isEmptyTenant
|| !store.getters['auth/currentTenant'].onboardedAt)
) {
router.push({
path: '/onboard',
query: isGoingToIntegrationsPage(to)
? {
selectedDataType: 'real',
...to.query,
}
: undefined,
});
}
} else if (
to.path !== '/auth/empty-permissions'
&& permissionChecker.isEmailVerified
&& permissionChecker.isEmptyPermissions
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/modules/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import shared from '@/shared/shared-module';
import auth from '@/modules/auth/auth-module';
import layout from '@/modules/layout/layout-module';
import dashboard from '@/modules/dashboard/dashboard-module';
import onboard from '@/modules/onboard/onboard-module';
import tenant from '@/modules/tenant/tenant-module';
import settings from '@/modules/settings/settings-module';
import integration from '@/modules/integration/integration-module';
Expand All @@ -21,7 +20,6 @@ import lf from '@/modules/lf/lf-modules';
const modules: Record<string, any> = {
shared,
dashboard,
onboard,
settings,
auth,
tenant,
Expand Down
298 changes: 0 additions & 298 deletions frontend/src/modules/onboard/components/onboard-community.vue

This file was deleted.

11 changes: 0 additions & 11 deletions frontend/src/modules/onboard/config/achievements.config.js

This file was deleted.

7 changes: 0 additions & 7 deletions frontend/src/modules/onboard/onboard-module.js

This file was deleted.

Loading

0 comments on commit 7a2f80e

Please sign in to comment.