public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Jonas Theisen <j.theisen@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH pve-manager 2/3] ui: acl: add mappings to ACL path list
Date: Wed,  9 Sep 2026 18:29:30 +0200	[thread overview]
Message-ID: <20260909163013.444378-3-j.theisen@proxmox.com> (raw)
In-Reply-To: <20260909163013.444378-1-j.theisen@proxmox.com>

This patch adds the USB, PCI and directory mappings
from the ressources API endpoint to the ACL path selection.

This is to allow the user to intuitively assign the specific mappings
to individual users or groups as needed.

Until now this was only possible with knowledge of the fact
that the ACL path is a text box and the path can be
manually adjusted.

Signed-off-by: Jonas Theisen <j.theisen@proxmox.com>
---
 www/manager6/data/PermPathStore.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/www/manager6/data/PermPathStore.js b/www/manager6/data/PermPathStore.js
index 7210e0cd..48e85cdb 100644
--- a/www/manager6/data/PermPathStore.js
+++ b/www/manager6/data/PermPathStore.js
@@ -55,6 +55,9 @@ Ext.define('PVE.data.PermPathStore', {
                 case 'pool':
                     path = '/pool/' + record.get('pool');
                     break;
+                case 'mapping':
+                    path = '/mapping/' + record.get('mapping-type') + '/' + record.get('mapping');
+                    break;
             }
             if (path !== undefined && !donePaths[path]) {
                 me.add({ value: path });
-- 
2.47.3





  parent reply	other threads:[~2026-09-09 16:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-09 16:29 [PATCH pve-manager 0/3] show mappings in ACL path selector Jonas Theisen
2026-09-09 16:29 ` [PATCH pve-manager 1/3] api: add mappings to resources endpoint Jonas Theisen
2026-09-09 16:29 ` Jonas Theisen [this message]
2026-09-09 16:29 ` [PATCH pve-manager 3/3] ui: resource-tree: filter newly added mappings Jonas Theisen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260909163013.444378-3-j.theisen@proxmox.com \
    --to=j.theisen@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal