Skip to content

Commit

Permalink
Merge pull request #4568 from activepieces/fix/platform
Browse files Browse the repository at this point in the history
fix: list cloud platform template
  • Loading branch information
abuaboud committed Apr 27, 2024
2 parents 0a60eb4 + fe067be commit cadb76d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
@@ -1,6 +1,7 @@
import { FastifyPluginAsyncTypebox } from '@fastify/type-provider-typebox'
import { Static, Type } from '@sinclair/typebox'
import { StatusCodes } from 'http-status-codes'
import { platformService } from '../../platform/platform.service'
import { platformMustBeOwnedByCurrentUser } from '../authentication/ee-authorization'
import { flowTemplateService } from './flow-template.service'
import { CreateFlowTemplateRequest } from '@activepieces/ee-shared'
Expand All @@ -15,7 +16,6 @@ import {
PrincipalType,
TemplateType,
} from '@activepieces/shared'
import { platformService } from '../../platform/platform.service'

export const platformFlowTemplateModule: FastifyPluginAsyncTypebox = async (app) => {
await app.register(flowTemplateController, { prefix: '/v1/flow-templates' })
Expand Down
6 changes: 4 additions & 2 deletions packages/ui/common/src/lib/service/platform.service.ts
Expand Up @@ -34,7 +34,7 @@ export class PlatformService {
private http: HttpClient,
private flagsService: FlagService,
private authenticationService: AuthenticationService
) {}
) { }

updatePlatform(req: UpdatePlatformRequestBody, platformId: string) {
return this.http
Expand Down Expand Up @@ -136,7 +136,9 @@ export class PlatformService {
projectRolesDisabled() {
return this.currentPlatform().pipe(
map((platform) => {
if (!platform) return true;
if (!platform) {
return true;
}
return !platform.projectRolesEnabled;
})
);
Expand Down

0 comments on commit cadb76d

Please sign in to comment.