Closed m-xen closed 5 years ago
Closing as duplicate of #2335.
user.getAll
is not fixed, re-opening.
Due to this code: https://github.com/vatesfr/xen-orchestra/blob/74b97e65186d7cb66dc3a50f4019ef6788fd1646/packages/xo-web/src/common/xo/index.js#L178-L183
Which is ugly and should be replaced.
I looked at the code but I think I need some explanation to finish this issue.
Context
Expected behavior
Log should not contain these 2 entries, either the function should silently fail to enumerate the resources, or the default permissions for User accounts should allow the enumeration of the resources.
Current behavior
If the account is an Admin no entries are raised at login. If the account is a User, 2 log entries are raised immediately after login for "not authenticated or not enough permissions";