Merge pull request #12595 from ToolJet/fix/workspace-archiving

[post-modularisation]Fixed: Not able to archive the current workspace
This commit is contained in:
Adish M 2025-04-16 12:41:36 +05:30 committed by GitHub
commit e395d7a834
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -333,7 +333,7 @@ export class SessionUtilService {
})
: null;
const noWorkspaceAttachedInTheSession = await this.checkUserWorkspaceStatus(user.id);
const noWorkspaceAttachedInTheSession = await this.checkUserWorkspaceStatus(user.id) && !isSuperAdmin(user);
const isAllWorkspacesArchived = await this.#isAllWorkspacesArchivedBySuperAdmin(user.id);
const onboardingFlags = await this.#onboardingFlags(user);
const metadata = await this.metadataUtilService.fetchMetadata();