CA-288751: Fix the RBAC checks for probe_ext

Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
Mihaela Stoica 2018-05-18 14:18:53 +01:00 committed by Konstantina Chremmou
parent 9ddb253ec0
commit 5d0b760a96
2 changed files with 4 additions and 0 deletions

View File

@ -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)
{

View File

@ -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>("");