mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
CA-288751: Fix the RBAC checks for probe_ext
Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
parent
9ddb253ec0
commit
5d0b760a96
@ -171,6 +171,8 @@ namespace XenAdmin.Wizards
|
||||
|
||||
|
||||
check.AddApiCheckRange(new RbacMethodList("SR.probe"));
|
||||
if (Helpers.KolkataOrGreater(xenConnection) && !Helpers.FeatureForbidden(xenConnection, Host.CorosyncDisabled))
|
||||
check.AddApiCheckRange(new RbacMethodList("SR.probe_ext"));
|
||||
|
||||
if (_srToReattach == null)
|
||||
{
|
||||
|
@ -85,6 +85,8 @@ namespace XenAdmin.Core
|
||||
return new Response<string>("");
|
||||
case "String[]":
|
||||
return new Response<string[]>(new string[0]);
|
||||
case "Proxy_Probe_result[]":
|
||||
return new Response<Proxy_Probe_result[]>(new Proxy_Probe_result[0]);
|
||||
default:
|
||||
System.Diagnostics.Trace.Assert(false); // need to add more types here
|
||||
return new Response<string>("");
|
||||
|
Loading…
Reference in New Issue
Block a user