mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
CP-44368 workaround: do not CFU on connection if the users are less privileged than pool operator.
Signed-off-by: Konstantina Chremmou <Konstantina.Chremmou@cloud.com>
This commit is contained in:
parent
f5e535cc2b
commit
9e25970850
@ -1084,6 +1084,8 @@ namespace XenAdmin
|
||||
if (YumRepoNotConfiguredAlert.TryCreate(connection, out var alert) || OutOfSyncWithCdnAlert.TryCreate(connection, out alert))
|
||||
Alert.AddAlert(alert);
|
||||
|
||||
if (connection.Session.IsLocalSuperuser || connection.Session.Roles.Any(r =>
|
||||
r.name_label == Role.MR_ROLE_POOL_OPERATOR || r.name_label == Role.MR_ROLE_POOL_ADMIN))
|
||||
Updates.CheckForCdnUpdates(coordinator.Connection);
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user