|
|
@ -79,10 +79,10 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { |
|
|
public tags: Filter[] = []; |
|
|
public tags: Filter[] = []; |
|
|
|
|
|
|
|
|
protected accessForm: FormGroup; |
|
|
protected accessForm: FormGroup; |
|
|
protected hasPermissionToEnableMcp = false; |
|
|
|
|
|
protected readonly mode: 'create' | 'update'; |
|
|
protected readonly mode: 'create' | 'update'; |
|
|
|
|
|
|
|
|
private hasExperimentalFeatures = false; |
|
|
private hasExperimentalFeatures = false; |
|
|
|
|
|
private hasPermissionToEnableMcp = false; |
|
|
|
|
|
|
|
|
private readonly changeDetectorRef = inject(ChangeDetectorRef); |
|
|
private readonly changeDetectorRef = inject(ChangeDetectorRef); |
|
|
|
|
|
|
|
|
@ -107,6 +107,10 @@ export class GfCreateOrUpdateAccessDialogComponent implements OnInit { |
|
|
return this.isPublicAccess && this.hasExperimentalFeatures; |
|
|
return this.isPublicAccess && this.hasExperimentalFeatures; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public get canGrantMcpAccess() { |
|
|
|
|
|
return this.hasExperimentalFeatures && this.hasPermissionToEnableMcp; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public get canGrantWriteAccess() { |
|
|
public get canGrantWriteAccess() { |
|
|
return this.hasExperimentalFeatures; |
|
|
return this.hasExperimentalFeatures; |
|
|
} |
|
|
} |
|
|
|