From 3320b95735d1eb7810dd9cf37da5e1db2817795d Mon Sep 17 00:00:00 2001 From: mgrimesix <126630154+mgrimesix@users.noreply.github.com> Date: Fri, 15 Nov 2024 19:09:39 -0800 Subject: [PATCH] Allow share administrators to the available RDMA capabilities. (#14960) --- src/middlewared/middlewared/plugins/rdma/rdma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middlewared/middlewared/plugins/rdma/rdma.py b/src/middlewared/middlewared/plugins/rdma/rdma.py index 733fb1e518a7..1360fd047b76 100644 --- a/src/middlewared/middlewared/plugins/rdma/rdma.py +++ b/src/middlewared/middlewared/plugins/rdma/rdma.py @@ -126,7 +126,7 @@ def get_card_choices(self): v['name'] = ':'.join(sorted(names)) return list(grouper.values()) - @api_method(RdmaCapableProtocolsArgs, RdmaCapableProtocolsResult) + @api_method(RdmaCapableProtocolsArgs, RdmaCapableProtocolsResult, roles=['SHARING_ADMIN']) async def capable_protocols(self): result = [] is_ent = await self.middleware.call('system.is_enterprise')