diff --git a/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts b/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts index 39ff860ef..4054de639 100644 --- a/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts +++ b/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.component.ts @@ -79,10 +79,10 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { public tags: Filter[] = []; protected accessForm: FormGroup; - protected hasPermissionToEnableMcp = false; protected readonly mode: 'create' | 'update'; private hasExperimentalFeatures = false; + private hasPermissionToEnableMcp = false; private readonly changeDetectorRef = inject(ChangeDetectorRef); @@ -107,6 +107,10 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { return this.isPublicAccess && this.hasExperimentalFeatures; } + public get canGrantMcpAccess() { + return this.hasExperimentalFeatures && this.hasPermissionToEnableMcp; + } + public get canGrantWriteAccess() { return this.hasExperimentalFeatures; } diff --git a/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html b/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html index da3ef46cc..131e4d782 100644 --- a/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html +++ b/apps/client/src/app/components/user-account-access/create-or-update-access-dialog/create-or-update-access-dialog.html @@ -33,7 +33,7 @@ Private Public - @if (hasPermissionToEnableMcp) { + @if (canGrantMcpAccess) { Model Context Protocol (MCP) }