HomeVendure CoreShow hidden breadcrumbs...PipesHasPermissionPipeOn this pageHasPermissionPipe@vendure/admin-uiSource A pipe which checks the provided permission against all the permissions of the current user. Returns true if the current user has that permission. Example HTML<button [disabled]="!('UpdateCatalog' | hasPermission)">Save Changes</button> Signatureclass HasPermissionPipe implements PipeTransform, OnDestroy { constructor(permissionsService: PermissionsService, changeDetectorRef: ChangeDetectorRef) transform(input: string | string[]) => any; ngOnDestroy() => ;} Implements: PipeTransform, OnDestroy transformmethod(input: string | string[]) => anyngOnDestroymethod() => Was this chapter helpful?It was helpfulIt wasn't helpfulReport IssuePreviousFileSizePipeNextLocaleCurrencyNamePipeEdited Apr 20, 2026ยทEdit this page