NIFI-13220 Only allow buckets with write access dropdown when starting version control

This closes #8820

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
Rob Fellows 2024-05-13 11:26:13 -04:00 committed by exceptionfactory
parent 0c9ef91507
commit 13e281d8d7
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -168,7 +168,8 @@ export class SaveVersionDialog implements OnInit {
.subscribe((buckets: BucketEntity[]) => {
if (buckets.length > 0) {
buckets.forEach((entity: BucketEntity) => {
if (entity.permissions.canRead) {
// only allow buckets to be selectable if the user can read and write to them
if (entity.permissions.canRead && entity.permissions.canWrite) {
this.bucketOptions.push({
text: entity.bucket.name,
value: entity.id,