From 99d1de543ca0a8faa03688c0177dcb5805f37690 Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Fri, 3 Nov 2023 00:26:32 -0700
Subject: [PATCH] Respect permissions for customfielddropdown
---
.../custom-fields-dropdown.component.html | 3 ++-
.../custom-fields-dropdown.component.ts | 15 ++++++++++++++-
.../common/input/select/select.component.ts | 5 ++++-
.../document-detail.component.html | 1 +
4 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.html b/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.html
index f3475c297..e0d26bfc3 100644
--- a/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.html
+++ b/src-ui/src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.html
@@ -14,11 +14,12 @@
[(ngModel)]="field"
[placeholder]="placeholderText"
[notFoundText]="notFoundText"
+ [disableCreateNew]="!canCreateFields"
(createNew)="createField($event)"
bindValue="id">
-