vatesfr / xen-orchestra

The global orchestration solution to manage and backup XCP-ng and XenServer.
https://xen-orchestra.com
Other
792 stars 265 forks source link

fix(xo-web/VM): properly identify self user to hide unauthorized actions #7854

Closed pdonias closed 3 months ago

pdonias commented 3 months ago

See Zammad#27288

Description

In order to hide some VM actions from the user, we check if the current user belongs to a resource set. But we also need to check if they belong to a group that belongs to a resource set.

Checklist